.page-home {
  --home-section-pad: clamp(52px, 6.5vw, 96px);
  --home-soft: #a9bec9;
  --home-green-deep: #0b8049;
  --home-line: rgba(29, 58, 76, 0.85);
  --home-panel: #102532;
}

/* ---------- 通用节奏 ---------- */
.page-home .section {
  padding: var(--home-section-pad) 0;
}

.page-home [data-chapter] {
  scroll-margin-top: calc(var(--topbar-h, 76px) + 28px);
}

.page-home .section-head {
  margin: 0 0 clamp(28px, 4vw, 48px);
}

.page-home .section-title {
  margin: 10px 0 14px;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-home .eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--turf-300);
}

.page-home .lede {
  margin: 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--home-soft);
}

.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-home .home-divider {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    var(--turf-500) 0,
    var(--turf-500) 72px,
    var(--ink-600) 72px,
    var(--ink-600) 100%
  );
}

/* 章节外挂旋转小注（仅宽屏显示） */
.page-home .home-head {
  position: relative;
}

.page-home .home-head::before {
  content: attr(data-note);
  position: absolute;
  left: -46px;
  top: 2px;
  transform: rotate(-90deg);
  transform-origin: left top;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute-400);
  white-space: nowrap;
  pointer-events: none;
  display: none;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(36px, 5vw, 76px) 0 clamp(44px, 6vw, 88px);
}

.page-home .home-hero__shell {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.page-home .home-hero__kicker {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--turf-300);
}

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-size: clamp(36px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.page-home .home-hero__lede {
  margin: 0 0 28px;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--home-soft);
}

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

.page-home .home-hero__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--home-panel);
  border: 1px solid var(--home-line);
}

.page-home .home-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.66;
}

/* ---------- 三条通道 ---------- */
.page-home .home-tunnel-grid {
  align-items: stretch;
}

.page-home .card.home-tunnel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--home-panel);
  border: 1px solid var(--home-line);
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}

.page-home .card.home-tunnel:hover {
  border-color: var(--turf-500);
  transform: translateY(-3px);
}

.page-home .home-tunnel .card__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-home .home-tunnel .card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.page-home .home-tunnel .card__title a:hover {
  color: var(--turf-300);
}

.page-home .home-tunnel .card__desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.75;
  color: var(--home-soft);
}

.page-home .home-tunnel .card__foot {
  margin: 6px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(29, 58, 76, 0.7);
}

.page-home .stamp {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--signal-500);
}

/* ---------- 索引总览 ---------- */
.page-home .home-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .index-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 17px 6px;
  border-bottom: 1px solid var(--ink-600);
  transition: background 240ms var(--ease), padding-left 240ms var(--ease);
}

.page-home .index-row:hover {
  background: linear-gradient(90deg, rgba(22, 193, 114, 0.12), rgba(22, 193, 114, 0) 64%);
  padding-left: 16px;
}

.page-home .index-row__name {
  flex: 0 1 auto;
  font-size: 16px;
  font-weight: 600;
}

.page-home .index-row__name a {
  color: inherit;
  text-decoration: none;
}

.page-home .index-row__name a:hover {
  color: var(--turf-300);
}

.page-home .index-row__dots {
  flex: 1 1 auto;
  min-width: 24px;
  height: 0;
  border-bottom: 1px dashed var(--ink-600);
  transform: translateY(-4px);
}

.page-home .index-row__time {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--mute-400);
  white-space: nowrap;
  transition: color 220ms var(--ease), transform 220ms var(--ease);
}

.page-home .index-row:hover .index-row__time {
  color: var(--signal-500);
  transform: translateX(2px);
}

/* ---------- 下载页入口（浅底分区） ---------- */
.page-home .home-download {
  background: var(--chalk-050);
  color: var(--chalk-900);
  border-radius: var(--radius-lg);
}

.page-home .home-download .section-title {
  color: var(--chalk-900);
}

.page-home .home-download .eyebrow {
  color: var(--home-green-deep);
}

.page-home .home-download .lede {
  color: #46606e;
}

.page-home .home-download__shell {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

.page-home .home-platforms {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.page-home .home-platform {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid rgba(11, 26, 36, 0.12);
}

.page-home .home-platform--apple {
  border-color: var(--turf-500);
  box-shadow: 0 0 0 1px rgba(22, 193, 114, 0.16);
}

.page-home .home-platform__name {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--home-green-deep);
}

.page-home .home-platform__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #46606e;
}

.page-home .home-download__note {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.75;
  color: #2f4b59;
}

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

.page-home .home-download__figure .figure__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e3ede8;
}

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

.page-home .home-download .figure__caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #5c7583;
}

/* ---------- 设备记录归档 ---------- */
.page-home .home-devices__grid {
  align-items: start;
}

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

.page-home .home-devices__figure .figure__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--home-panel);
  border: 1px solid var(--home-line);
}

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

.page-home .home-device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-home .home-device {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--home-panel);
  border: 1px solid var(--home-line);
  transition: border-color 240ms var(--ease);
}

.page-home .home-device:hover {
  border-color: var(--turf-500);
}

.page-home .home-device__name {
  margin: 0;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .home-device__desc {
  margin: 0;
  flex: 1 1 190px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--home-soft);
}

.page-home .home-device__count {
  margin: 0;
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--signal-500);
}

.page-home .home-devices__foot {
  margin: clamp(24px, 3.5vw, 40px) 0 0;
}

/* ---------- 订阅栏目 ---------- */
.page-home .home-subscribe {
  background: linear-gradient(
    180deg,
    rgba(16, 37, 50, 0) 0%,
    rgba(16, 37, 50, 0.72) 16%,
    rgba(16, 37, 50, 0.72) 84%,
    rgba(16, 37, 50, 0) 100%
  );
}

.page-home .home-subscribe__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.page-home .home-mode {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--turf-500);
  color: var(--turf-300);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.page-home .home-sub-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-sub-item {
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  background: rgba(29, 58, 76, 0.55);
  border: 1px solid rgba(111, 227, 166, 0.2);
  font-size: 14px;
  color: var(--chalk-050);
  text-align: center;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}

.page-home .home-sub-item:hover {
  background: rgba(22, 193, 114, 0.18);
  color: var(--turf-300);
}

.page-home .home-subscribe__foot {
  margin: clamp(24px, 3.5vw, 40px) 0 0;
}

/* ---------- 更新节奏与支持 ---------- */
.page-home .home-rhythm__shell {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

.page-home .home-rhythm__stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.page-home .home-stat {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(22, 193, 114, 0.16), rgba(16, 37, 50, 0.9) 64%);
  border: 1px solid var(--home-line);
}

.page-home .home-stat__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1;
  color: var(--turf-300);
}

.page-home .home-stat__label {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--home-soft);
}

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

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

.page-home .home-rhythm__figure .figure__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--home-panel);
  border: 1px solid var(--home-line);
}

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

.page-home .home-rhythm__support {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: rgba(16, 37, 50, 0.92);
  border: 1px solid var(--home-line);
}

.page-home .home-rhythm__support-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal-500);
}

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

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

@media (min-width: 980px) {
  .page-home .home-hero__shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-home .home-download__shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
    align-items: start;
  }

  .page-home .home-rhythm__shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

@media (max-width: 899px) {
  .page-home .home-devices__grid > * {
    grid-column: 1 / -1;
  }

  .page-home .home-devices__figure {
    max-width: 420px;
  }
}

@media (min-width: 1280px) {
  .page-home .home-head::before {
    display: block;
  }
}

@media (max-width: 520px) {
  .page-home .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .home-hero__actions .btn {
    text-align: center;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .card.home-tunnel,
  .page-home .index-row,
  .page-home .index-row__time,
  .page-home .home-device,
  .page-home .home-sub-item {
    transition: none;
  }

  .page-home .card.home-tunnel:hover {
    transform: none;
  }

  .page-home .index-row:hover {
    padding-left: 6px;
  }

  .page-home .index-row:hover .index-row__time {
    transform: none;
  }
}
