.page-home {
  --home-stack: clamp(18px, 3vw, 28px);
  display: block;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(34px, 7vw, 84px) 0 clamp(22px, 4vw, 40px);
  background: linear-gradient(180deg, var(--night) 0%, var(--stand) 78%, var(--night) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 84% 0%, rgba(63, 163, 114, .22), transparent 62%),
    radial-gradient(80% 60% at 0% 100%, rgba(255, 90, 43, .10), transparent 64%);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .20;
  z-index: -2;
}

.page-home .hero-grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.page-home .hero-title {
  margin: 14px 0 0;
  font-size: clamp(40px, 9.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 900;
}

.page-home .hero-title span {
  display: block;
}

.page-home .hero-title-alt {
  color: var(--grass-lite);
  font-weight: 200;
  letter-spacing: -.012em;
}

.page-home .hero-facts {
  list-style: none;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--index);
}

.page-home .hero-facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.page-home .hero-facts .mono {
  color: var(--grass-lite);
  font-size: 13px;
}

.page-home .hero-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 22px);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .hero-card:hover,
.page-home .hero-card:focus-within {
  border-color: var(--grass-lite);
  transform: translateY(-2px);
}

.page-home .hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.page-home .hero-card-cap {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.page-home .hero-card .btn {
  display: flex;
  justify-content: center;
  width: 100%;
}

.page-home .hero-card-link {
  align-self: center;
  font-size: 14px;
}

.page-home .hero-rail {
  margin-top: clamp(26px, 4vw, 44px);
}

.page-home .shelf {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 216, 166, .45) transparent;
}

.page-home .shelf:focus-visible {
  outline: 2px solid var(--grass-lite);
  outline-offset: 4px;
  border-radius: var(--r-card);
}

.page-home .shelf::-webkit-scrollbar {
  height: 6px;
}

.page-home .shelf::-webkit-scrollbar-thumb {
  background: rgba(111, 216, 166, .38);
  border-radius: var(--r-pill);
}

.page-home .shelf-item {
  flex: 0 0 min(76vw, 258px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: rgba(28, 43, 69, .55);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .shelf-item:hover {
  border-color: var(--grass);
  background: rgba(63, 163, 114, .14);
}

.page-home .shelf-item .tag {
  align-self: flex-start;
}

.page-home .shelf-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .shelf-meta {
  font-size: 12px;
  color: var(--index);
}

.page-home .pace-strip {
  margin-top: clamp(14px, 2.6vw, 24px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
  background: rgba(11, 18, 32, .62);
  font-size: 12px;
  color: var(--index);
}

.page-home .pace-strip p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-home .pace-strip p::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grass);
}

.page-home .pace-strip .mono {
  color: var(--text);
}

/* ---------- 版本适配 ---------- */
.page-home .install-grid {
  display: grid;
  gap: 16px;
}

.page-home .install-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--tunnel);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .install-card--ios {
  border-left: 3px solid var(--grass);
}

.page-home .install-card--android {
  border-left: 3px solid var(--gold);
}

.page-home .install-card:hover,
.page-home .install-card:focus-within {
  border-color: var(--grass-lite);
  transform: translateY(-3px);
}

.page-home .install-card .eyebrow {
  margin: 0;
}

.page-home .install-card .h3 {
  margin: 0;
}

.page-home .install-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  max-width: 46ch;
}

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

.page-home .spec li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.6;
}

.page-home .spec .k {
  color: var(--index);
  flex: 0 0 auto;
}

.page-home .spec .v {
  text-align: right;
  color: var(--text);
  font-weight: 600;
}

.page-home .spec .v.mono {
  font-weight: 500;
  color: var(--grass-lite);
}

.page-home .install-link {
  margin-top: auto;
  font-size: 14px;
}

/* ---------- 权益字段表 ---------- */
.page-home .rights {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--paper);
  scrollbar-width: thin;
}

.page-home .rights:focus-visible {
  outline: 2px solid var(--grass-lite);
  outline-offset: 3px;
}

.page-home .rights table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: var(--night);
}

.page-home .rights thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--night);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}

.page-home .rights tbody td {
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.6;
  vertical-align: top;
  border-bottom: 1px solid rgba(11, 18, 32, .09);
  color: #23324a;
}

.page-home .rights tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .rights tbody tr:hover td {
  background: rgba(63, 163, 114, .12);
}

.page-home .rights .col-name {
  font-weight: 700;
  color: var(--night);
  white-space: nowrap;
}

.page-home .rights .mono {
  color: var(--tunnel);
  font-size: 13px;
}

.page-home .rights-foot {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--index);
  max-width: 72ch;
}

/* ---------- 订阅与收藏 ---------- */
.page-home .rail-grid {
  display: grid;
  gap: clamp(20px, 3vw, 38px);
  align-items: center;
}

.page-home .rail-copy .h2 {
  margin-bottom: 14px;
}

.page-home .rail-copy .prose {
  margin: 0 0 14px;
}

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

.page-home .rail-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
}

.page-home .rail-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--index);
}

/* ---------- 通道过渡带 ---------- */
.page-home .scene-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--stand);
}

.page-home .scene-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: .58;
}

.page-home .scene-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 44px var(--gutter) 16px;
  font-size: 13px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(11, 18, 32, 0), rgba(11, 18, 32, .94));
}

/* ---------- 午间节奏 ---------- */
.page-home .midday {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .midday-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}

.page-home .midday-num {
  font-size: 12px;
  color: var(--index);
  letter-spacing: .12em;
}

.page-home .midday-item .tag {
  align-self: flex-start;
}

.page-home .midday-item .h3 {
  margin: 0;
}

.page-home .midday-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--index);
}

/* ---------- 常见卡点 ---------- */
.page-home .faq {
  display: grid;
  gap: 12px;
}

.page-home .faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: rgba(28, 43, 69, .45);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}

.page-home .faq-item[open] {
  border-color: var(--grass);
}

.page-home .faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
}

.page-home .faq-item summary::-webkit-details-marker {
  display: none;
}

.page-home .faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--grass-lite);
}

.page-home .faq-item[open] summary::after {
  content: "\2013";
}

.page-home .faq-body {
  padding: 0 18px 18px;
}

.page-home .faq-body p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- 尾部行动带 ---------- */
.page-home .cta-band {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(115deg, rgba(63, 163, 114, .20), rgba(11, 18, 32, 0) 64%);
}

.page-home .cta-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.page-home .cta-copy .h2 {
  margin: 0 0 10px;
}

.page-home .cta-copy .prose {
  margin: 0;
}

.page-home .cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-home .install-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .midday {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .page-home .midday::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--grass), rgba(245, 200, 107, .6) 55%, rgba(233, 238, 245, .12));
  }

  .page-home .midday {
    position: relative;
  }

  .page-home .midday-item {
    padding: 0 20px 0 0;
  }

  .page-home .midday-item::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--night);
    border: 2px solid var(--grass);
    margin: 6px 0 16px;
  }
}

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    gap: clamp(32px, 5vw, 64px);
  }

  .page-home .rail-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }

  .page-home .scene-band img {
    aspect-ratio: 3 / 1;
  }

  .page-home .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .page-home .cta-copy {
    max-width: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-card,
  .page-home .install-card,
  .page-home .shelf-item,
  .page-home .faq-item {
    transition: none;
  }

  .page-home .hero-card:hover,
  .page-home .hero-card:focus-within,
  .page-home .install-card:hover,
  .page-home .install-card:focus-within {
    transform: none;
  }
}
