.page-home {
  --hp-line: rgba(143, 166, 201, 0.24);
  --hp-line-soft: rgba(143, 166, 201, 0.14);
  --hp-card: linear-gradient(160deg, rgba(37, 42, 92, 0.92), rgba(20, 27, 61, 0.82));
  --hp-radius: 24px;
  --hp-radius-sm: 16px;
  --hp-gap: clamp(0.8rem, 2vw, 1.1rem);
  color: var(--c-snow);
  font-family: var(--font-sans);
  overflow-wrap: break-word;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .home-section {
  padding-block: clamp(2.4rem, 6vw, 4.5rem);
}

/* ---------- 首屏拼贴 ---------- */
.page-home .home-hero {
  position: relative;
  padding-block: clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 3.2rem);
  background:
    radial-gradient(120% 100% at 8% 0%, rgba(63, 58, 122, 0.85), transparent 62%),
    radial-gradient(80% 70% at 100% 10%, rgba(232, 176, 75, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(20, 27, 61, 0.35), rgba(20, 27, 61, 0.96));
  overflow: hidden;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(244, 241, 234, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.7;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hp-gap);
}

.page-home .hero-depth {
  margin: 0;
  position: relative;
  border-radius: var(--hp-radius);
  overflow: hidden;
  border: 1px solid var(--hp-line);
  min-height: 220px;
  max-height: 340px;
}

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

.page-home .hero-depth::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 27, 61, 0) 40%, rgba(20, 27, 61, 0.85));
}

.page-home .hero-depth__cap {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.85rem;
  z-index: 1;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-mist);
}

.page-home .hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
}

.page-home .hero-kicker__text {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-mist);
}

.page-home .hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 5vw, 3.15rem);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--c-snow);
}

.page-home .hero-lede {
  margin: 0 0 1.1rem;
  max-width: 46ch;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.82);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-home .hero-pennant {
  margin: 0;
  border-radius: var(--hp-radius);
  overflow: hidden;
  border: 1px solid var(--hp-line);
  max-height: 300px;
}

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

.page-home .hero-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
}

.page-home .tile {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.95rem 1rem 1.05rem;
  border-radius: var(--hp-radius-sm);
  border: 1px solid var(--hp-line);
  background: var(--hp-card);
  text-decoration: none;
  color: var(--c-snow);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), background 260ms var(--ease);
}

.page-home .tile > .tag {
  align-self: flex-start;
}

.page-home .tile__title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.page-home .tile__meta {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--c-mist);
}

.page-home .tile--link:hover,
.page-home .tile--link:focus-visible {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(232, 176, 75, 0.55);
}

/* ---------- 页内跳转 ---------- */
.page-home .home-jump {
  display: flex;
  gap: 0.5rem;
  padding-block: 0.9rem 0.2rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .jump-pill {
  flex: 0 0 auto;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hp-line);
  background: rgba(37, 42, 92, 0.55);
  color: rgba(244, 241, 234, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: border-color 220ms var(--ease), color 220ms var(--ease);
}

.page-home .jump-pill:hover,
.page-home .jump-pill:focus-visible {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

/* ---------- 通用章节标题 ---------- */
.page-home .section-head {
  margin-bottom: clamp(1.3rem, 3vw, 2rem);
}

.page-home .section-kicker {
  margin: 0 0 0.5rem;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--c-gold);
}

.page-home .section-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.45rem, 3.6vw, 2.1rem);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.page-home .section-desc {
  margin: 0;
  max-width: 62ch;
  font-size: 0.94rem;
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.78);
}

.page-home .section-head--split {
  display: grid;
  gap: 0.8rem;
}

.page-home .section-more {
  align-self: flex-start;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--c-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 176, 75, 0.5);
  padding-bottom: 2px;
}

/* ---------- 五条路径 ---------- */
.page-home .path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.page-home .path-card {
  position: relative;
  padding: 1.15rem 1.1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--hp-line);
  background: var(--hp-card);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.page-home .path-card--lab {
  background:
    linear-gradient(160deg, rgba(201, 79, 90, 0.18), transparent 65%),
    var(--hp-card);
  border-color: rgba(201, 79, 90, 0.4);
}

.page-home .path-card__num {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--c-gold);
}

.page-home .path-card__title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.page-home .path-card__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.78;
  color: rgba(244, 241, 234, 0.76);
}

.page-home .path-card__link {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--c-gold);
  text-decoration: none;
}

.page-home .path-card__link::after {
  content: " →";
}

.page-home .path-card__link:hover,
.page-home .path-card__link:focus-visible {
  color: var(--c-ember);
}

/* ---------- 周二节奏 ---------- */
.page-home .home-cycle {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(63, 58, 122, 0.55), transparent 65%),
    linear-gradient(180deg, rgba(37, 42, 92, 0.28), rgba(20, 27, 61, 0));
}

.page-home .cycle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.page-home .cycle-lede {
  margin: 0 0 1.2rem;
  max-width: 56ch;
  font-size: 0.94rem;
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.8);
}

.page-home .cycle-track {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0 0 0.4rem;
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .cycle-node {
  position: relative;
  flex: 0 0 152px;
  padding-top: 1rem;
  border-top: 1px solid var(--hp-line);
}

.page-home .cycle-node__dot {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-mist);
}

.page-home .cycle-node--gold {
  border-top-color: rgba(232, 176, 75, 0.65);
}

.page-home .cycle-node--gold .cycle-node__dot {
  background: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(232, 176, 75, 0.16);
}

.page-home .cycle-node__label {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.page-home .cycle-node--gold .cycle-node__label {
  color: var(--c-gold);
}

.page-home .cycle-node__note {
  display: block;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--c-mist);
}

.page-home .cycle-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
}

.page-home .cycle-fact {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-radius: var(--hp-radius-sm);
  border: 1px solid var(--hp-line-soft);
  background: rgba(20, 27, 61, 0.55);
}

.page-home .cycle-fact strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--c-gold);
}

.page-home .cycle-fact span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--c-mist);
}

.page-home .home-media {
  margin: 0;
  border-radius: var(--hp-radius);
  overflow: hidden;
  border: 1px solid var(--hp-line);
  background: rgba(20, 27, 61, 0.6);
}

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

.page-home .home-media figcaption {
  padding: 0.7rem 0.95rem 0.85rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--c-mist);
}

/* ---------- 登录四步 ---------- */
.page-home .step-grid {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.page-home .step {
  position: relative;
  padding: 1.05rem 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--hp-line);
  background: linear-gradient(180deg, rgba(37, 42, 92, 0.55), rgba(20, 27, 61, 0.75));
}

.page-home .step__num {
  margin: 0 0 0.45rem;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
  color: var(--c-gold);
}

.page-home .step__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.page-home .step__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.78);
}

.page-home .login-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.page-home .login-cta p {
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--c-mist);
}

/* ---------- 测试通道 ---------- */
.page-home .lab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 1.8rem);
  padding: clamp(1.1rem, 3vw, 1.9rem);
  border-radius: 28px;
  border: 1px solid rgba(217, 122, 58, 0.35);
  background:
    radial-gradient(100% 90% at 0% 0%, rgba(63, 58, 122, 0.9), transparent 70%),
    linear-gradient(160deg, rgba(37, 42, 92, 0.9), rgba(20, 27, 61, 0.95));
}

.page-home .lab-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
}

.page-home .lab-lede {
  margin: 0 0 1rem;
  max-width: 48ch;
  font-size: 0.94rem;
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.84);
}

.page-home .lab-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.page-home .lab-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(244, 241, 234, 0.82);
}

.page-home .lab-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-ember);
}

.page-home .lab-media img {
  aspect-ratio: 12 / 7;
}

/* ---------- 最近笔记 ---------- */
.page-home .note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hp-line);
}

.page-home .note-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem 0.8rem;
  padding: 0.95rem 0.15rem;
  border-bottom: 1px solid var(--hp-line-soft);
}

.page-home .note-item__title {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 700;
  color: var(--c-snow);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.page-home .note-item__title:hover,
.page-home .note-item__title:focus-visible {
  color: var(--c-gold);
}

.page-home .note-item > .tag {
  justify-self: start;
}

.page-home .note-item__time {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--c-mist);
  white-space: nowrap;
}

/* ---------- 信任与联系 ---------- */
.page-home .home-trust {
  background:
    radial-gradient(80% 70% at 100% 100%, rgba(232, 176, 75, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(20, 27, 61, 0), rgba(37, 42, 92, 0.35));
}

.page-home .trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.page-home .trust-card {
  padding: 1.15rem 1.05rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--hp-line);
  background: var(--hp-card);
}

.page-home .trust-card--contact {
  background:
    linear-gradient(160deg, rgba(62, 156, 155, 0.16), transparent 70%),
    var(--hp-card);
  border-color: rgba(62, 156, 155, 0.42);
}

.page-home .trust-card__title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--c-snow);
}

.page-home .trust-card__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.78);
}

.page-home .trust-contact {
  font-style: normal;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.4rem;
}

.page-home .trust-contact p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(244, 241, 234, 0.86);
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 0.5rem;
}

.page-home .trust-contact span {
  color: var(--c-mist);
  font-size: 0.78rem;
}

.page-home .trust-contact a {
  color: var(--c-gold);
  text-decoration: none;
  word-break: break-all;
}

.page-home .trust-contact a:hover,
.page-home .trust-contact a:focus-visible {
  color: var(--c-ember);
}

.page-home .trust-foot {
  margin-top: clamp(1.3rem, 3vw, 2rem);
  padding-top: 1rem;
  border-top: 1px solid var(--hp-line-soft);
  display: grid;
  gap: 0.7rem;
}

.page-home .trust-foot p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--c-mist);
}

.page-home .trust-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-home .trust-foot__links a {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(244, 241, 234, 0.9);
  text-decoration: none;
  border-bottom: 1px solid var(--hp-line);
  padding-bottom: 2px;
}

.page-home .trust-foot__links a:hover,
.page-home .trust-foot__links a:focus-visible {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
}

.page-home .trust-icp {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(143, 166, 201, 0.85);
}

/* ---------- 断点 ---------- */
@media (min-width: 560px) {
  .page-home .hero-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-home .note-item {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .page-home .note-item__title {
    grid-column: auto;
  }
}

@media (min-width: 720px) {
  .page-home .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 1.4rem;
  }

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

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

  .page-home .lab-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

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

  .page-home .trust-card--contact {
    grid-column: 1 / -1;
  }

  .page-home .trust-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .page-home .trust-foot__links {
    order: 3;
  }

  .page-home .trust-icp {
    text-align: right;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(0, 0.72fr);
    grid-template-areas:
      "depth copy pennant"
      "depth tiles tiles";
    align-items: stretch;
  }

  .page-home .hero-depth {
    grid-area: depth;
    min-height: 100%;
    max-height: none;
  }

  .page-home .hero-copy {
    grid-area: copy;
    padding: 0.4rem 0.2rem 0.2rem 0.6rem;
  }

  .page-home .hero-pennant {
    grid-area: pennant;
    max-height: none;
  }

  .page-home .hero-tiles {
    grid-area: tiles;
  }

  .page-home .path-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-home .path-card:nth-child(1),
  .page-home .path-card:nth-child(2) {
    grid-column: span 3;
  }

  .page-home .path-card:nth-child(n + 3) {
    grid-column: span 2;
  }

  .page-home .cycle-track {
    overflow-x: visible;
    gap: 0.7rem;
  }

  .page-home .cycle-node {
    flex: 1 1 0;
    min-width: 0;
  }

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

  .page-home .trust-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  }

  .page-home .trust-card--contact {
    grid-column: auto;
  }

  .page-home .section-title {
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .tile,
  .page-home .jump-pill,
  .page-home .note-item__title {
    transition: none;
  }

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