.page-home {
  --home-cut: 2.6vw;
  --home-radius: 14px;
  color: var(--snow);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(24px, 5vw, 56px) 0 clamp(48px, 8vw, 104px);
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 88% 0%, rgba(76, 141, 246, .16), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(95, 211, 180, .10), transparent 65%);
  pointer-events: none;
}

.page-home .hero .wrap {
  position: relative;
  z-index: 1;
}

.page-home .hero__grid {
  display: grid;
  gap: 30px;
  margin-top: 22px;
}

.page-home .hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 10vw, 96px);
  line-height: .96;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
  text-transform: none;
}

.page-home .hero__line {
  display: block;
}

.page-home .hero__line--accent {
  color: var(--turquoise);
}

.page-home .hero__copy .lead {
  color: var(--mist);
  max-width: 34em;
  margin: 0 0 26px;
}

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

.page-home .hero__note {
  margin: 18px 0 0;
  color: var(--mist);
  letter-spacing: .04em;
}

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

.page-home .hero__photo {
  position: relative;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 27, 43, .15), rgba(11, 27, 43, .7));
}

.page-home .hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.02);
}

/* ---------- 日历面板浮层 ---------- */
.page-home .cal {
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(11, 27, 43, .94);
  overflow: hidden;
}

.page-home .cal__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--flag-yellow);
}

.page-home .cal__toggle::-webkit-details-marker {
  display: none;
}

.page-home .cal__body {
  padding: 0 16px 14px;
}

.page-home .cal__scale {
  height: 22px;
  margin: 4px 0 10px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--mist) 0 1px, transparent 1px 14px);
  opacity: .45;
}

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

.page-home .cal__rows li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.page-home .cal__dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}

.page-home .cal__dot--red { background: var(--flag-red); }
.page-home .cal__dot--yellow { background: var(--flag-yellow); }
.page-home .cal__dot--turquoise { background: var(--turquoise); }

.page-home .cal__time {
  margin-left: auto;
  color: var(--mist);
}

.page-home .cal__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--mist);
}

/* ---------- 三条主线索引带 ---------- */
.page-home .tracks {
  background:
    linear-gradient(180deg, rgba(76, 141, 246, .12), transparent 55%),
    var(--ink-800);
  clip-path: polygon(0 var(--home-cut), 100% 0, 100% calc(100% - var(--home-cut)), 0 100%);
  padding: clamp(64px, 11vw, 124px) 0;
}

.page-home .tracks h2 {
  margin: 10px 0 30px;
}

.page-home .tracks__grid {
  display: grid;
  gap: 10px;
}

.page-home .track {
  display: block;
  padding: 24px 20px 24px 22px;
  text-decoration: none;
  color: inherit;
  border-left: 2px solid var(--track-accent, var(--turquoise));
  background: linear-gradient(180deg, var(--surface), transparent 90%);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .track:focus-visible {
  outline: 2px solid var(--flag-blue);
  outline-offset: 3px;
}

.page-home .track h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 8px 0 10px;
}

.page-home .track p {
  margin: 0 0 14px;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.72;
}

.page-home .track__num {
  color: var(--track-accent, var(--turquoise));
  letter-spacing: .1em;
}

.page-home .track__go {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--snow);
}

.page-home .track--1 { --track-accent: var(--turquoise); }
.page-home .track--2 { --track-accent: var(--orange); }
.page-home .track--3 { --track-accent: var(--flag-blue); }

/* ---------- 本月整理 ---------- */
.page-home .month {
  padding: clamp(56px, 9vw, 104px) 0;
}

.page-home .month__head {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.page-home .month__head h2 {
  margin: 0;
}

.page-home .month__head p {
  color: var(--mist);
  margin: 0;
  max-width: 42em;
}

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

.page-home .mcard {
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(237, 242, 247, .04) inset;
}

.page-home .mcard h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.35;
  margin: 12px 0 8px;
  letter-spacing: -0.01em;
}

.page-home .mcard p {
  margin: 0 0 14px;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.72;
}

.page-home .mcard__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--flag-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .mcard__link:hover,
.page-home .mcard__link:focus-visible {
  color: var(--turquoise);
  border-bottom-color: var(--turquoise);
}

/* ---------- 三步筛选 ---------- */
.page-home .steps {
  padding: clamp(48px, 8vw, 96px) 0;
  background:
    linear-gradient(180deg, transparent, rgba(27, 58, 82, .55) 40%, transparent);
}

.page-home .steps__grid {
  display: grid;
  gap: 32px;
}

.page-home .steps__copy .btn {
  margin-top: 26px;
}

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

.page-home .step {
  position: relative;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-home .step__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(95, 211, 180, .26);
}

.page-home .step h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  margin: -20px 0 8px;
  letter-spacing: -0.01em;
}

.page-home .step p {
  position: relative;
  margin: 0;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.72;
}

/* ---------- 覆盖与更新能力带 ---------- */
.page-home .stats {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  padding: clamp(64px, 10vw, 116px) 0;
}

.page-home .stats__bg {
  position: absolute;
  inset: 0;
}

.page-home .stats__bg img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: .2;
  filter: saturate(.7);
}

.page-home .stats::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 27, 43, .92), rgba(11, 27, 43, .55));
}

.page-home .stats__inner {
  position: relative;
  z-index: 1;
}

.page-home .stats__inner h2 {
  margin: 0 0 32px;
}

.page-home .stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 18px;
}

.page-home .stat__value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1;
  color: var(--turquoise);
  letter-spacing: -0.02em;
}

.page-home .stat__value::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  margin-top: 12px;
  background: var(--turquoise);
  opacity: .6;
}

.page-home .stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .stats__note {
  margin: 34px 0 0;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .stats__note a {
  color: var(--flag-yellow);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 194, 48, .4);
}

/* ---------- 收口行动区 ---------- */
.page-home .close {
  position: relative;
  padding-bottom: clamp(56px, 9vw, 100px);
}

.page-home .close__banner {
  line-height: 0;
}

.page-home .close__banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  opacity: .85;
}

.page-home .close__inner {
  padding-top: clamp(28px, 5vw, 48px);
}

.page-home .close__inner h2 {
  margin: 0 0 22px;
}

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

.page-home .close__foot {
  margin: 22px 0 0;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .close__foot a {
  color: var(--flag-blue);
  text-decoration: none;
  border-bottom: 1px dashed rgba(76, 141, 246, .55);
}

.page-home .close__foot--sub {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .02em;
}

/* ---------- 窄屏微调 ---------- */
@media (max-width: 480px) {
  .page-home .hero__title {
    font-size: 36px;
  }

  .page-home .stat__value {
    font-size: 26px;
  }

  .page-home .cal__meta {
    flex-direction: column;
    gap: 4px;
  }
}

/* ---------- 平板 ---------- */
@media (min-width: 720px) {
  .page-home .stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 24px;
  }

  .page-home .month__grid {
    gap: 18px;
  }

  .page-home .step h3 {
    font-size: 20px;
  }

  .page-home .step__num {
    font-size: 62px;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 960px) {
  .page-home .hero {
    padding-bottom: clamp(72px, 8vw, 112px);
  }

  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
    gap: 42px;
  }

  .page-home .hero__stage {
    padding-bottom: 24px;
  }

  .page-home .cal {
    position: absolute;
    right: -6px;
    bottom: 4px;
    width: min(320px, 90%);
    margin-top: 0;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .45);
    backdrop-filter: blur(6px);
  }

  .page-home .tracks__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: start;
  }

  .page-home .track:nth-child(2) {
    margin-top: 30px;
  }

  .page-home .track:nth-child(3) {
    margin-top: 60px;
  }

  .page-home .track:hover,
  .page-home .track:focus-visible {
    transform: translateX(6px);
    background: linear-gradient(180deg, var(--surface-2), transparent 90%);
  }

  .page-home .month__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 24px;
  }

  .page-home .month__head p {
    text-align: right;
    justify-self: end;
  }

  .page-home .month__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
  }

  .page-home .mcard--a { grid-column: span 7; }
  .page-home .mcard--b { grid-column: span 5; margin-top: 44px; }
  .page-home .mcard--c { grid-column: span 5; }
  .page-home .mcard--d { grid-column: span 7; margin-top: 44px; }

  .page-home .steps__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: start;
  }

  .page-home .steps__media {
    position: sticky;
    top: 96px;
  }

  .page-home .step__num {
    font-size: 72px;
  }

  .page-home .step h3 {
    margin-top: -30px;
  }

  .page-home .close__banner img {
    max-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .track,
  .page-home .mcard__link {
    transition: none;
  }

  .page-home .track:hover,
  .page-home .track:focus-visible {
    transform: none;
  }
}
