/* ===== 首页 page-home ===== */
.page-home {
  --h-edge: rgba(221, 227, 236, .16);
  --h-edge-strong: rgba(221, 227, 236, .34);
  --h-ink-edge: rgba(11, 13, 18, .14);
  display: block;
  width: 100%;
  overflow-x: hidden;
  background: var(--indigo);
  color: var(--paper);
}

.page-home .mono {
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

/* --- 页面上下文提示 --- */
.page-home .home-context {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--frost);
}

.page-home .home-context-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 214, 200, .16);
}

/* --- 框景首屏 --- */
.page-home .hero-frame {
  position: relative;
  margin: 14px 20px 0;
  padding: 28px 20px 32px;
  border: 1px solid rgba(53, 214, 200, .42);
  background:
    radial-gradient(120% 88% at 100% 0%, rgba(53, 214, 200, .13), transparent 62%),
    var(--indigo);
  overflow: hidden;
}

.page-home .hero-frame::before,
.page-home .hero-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--cyan);
  pointer-events: none;
}

.page-home .hero-frame::before {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}

.page-home .hero-frame::after {
  right: 8px;
  bottom: 8px;
  border-top: 0;
  border-left: 0;
}

.page-home .hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
}

/* --- 首屏左列 --- */
.page-home .hero-lead {
  position: relative;
}

.page-home .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--cyan);
}

.page-home .hero-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  background: var(--orange);
  color: var(--char);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.page-home .hero-title {
  margin: 16px 0 0;
  font-size: clamp(34px, 9.2vw, 70px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .hero-annotation {
  display: none;
}

.page-home .hero-sub {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .quick {
  margin-top: 22px;
  padding: 16px 16px 18px;
  border: 1px dashed var(--h-edge-strong);
  background: rgba(27, 39, 64, .55);
}

.page-home .quick-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--amber);
}

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

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* --- 首屏右列：三条更新 --- */
.page-home .hero-side {
  position: relative;
}

.page-home .side-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--h-edge);
}

.page-home .side-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--paper);
}

.page-home .side-time {
  font-size: 12px;
  color: var(--frost);
}

.page-home .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-home .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--h-edge-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}

.page-home .filter-btn:hover {
  border-color: var(--cyan);
  color: var(--paper);
}

.page-home .filter-btn[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--char);
  font-weight: 700;
}

.page-home .filter-count {
  font-size: 11px;
  opacity: .72;
}

.page-home .filter-status {
  flex: 1 1 100%;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--frost);
  min-height: 0;
}

.page-home .update-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .update-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px 16px 18px;
  border: 1px solid var(--h-edge);
  border-left: 2px solid rgba(255, 106, 43, .35);
  background: rgba(27, 39, 64, .5);
  transition: border-color .24s var(--ease), background .24s var(--ease);
}

.page-home .update-item:hover,
.page-home .update-item:focus-within {
  border-color: var(--h-edge-strong);
  border-left-color: var(--orange);
  background: rgba(27, 39, 64, .78);
}

.page-home .update-idx {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: var(--orange);
}

.page-home .update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-size: 12px;
  color: var(--frost);
}

.page-home .uptag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(255, 106, 43, .6);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
}

.page-home .uptag--cyan {
  border-color: rgba(53, 214, 200, .55);
  color: var(--cyan);
}

.page-home .uptag--amber {
  border-color: rgba(255, 180, 58, .55);
  color: var(--amber);
}

.page-home .update-title {
  margin: 9px 0 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

.page-home .update-title a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .update-title a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* --- 章节与画板 --- */
.page-home .home-sec {
  padding: 40px 20px 0;
}

.page-home .board {
  position: relative;
  padding: 28px 20px 34px;
}

.page-home .board--paper {
  background: var(--paper);
  color: var(--ink);
}

.page-home .board--night {
  background: var(--night);
  color: var(--mist);
}

.page-home .board--deep {
  background: var(--indigo);
  color: var(--mist);
  border: 1px solid var(--h-edge);
}

.page-home .chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.page-home .chapter-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: clamp(38px, 10vw, 62px);
  line-height: .8;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--orange);
}

.page-home .chapter-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan);
}

.page-home .board--paper .chapter-kicker {
  color: var(--ink);
  opacity: .78;
}

.page-home .chapter-title {
  margin: 0;
  font-size: clamp(23px, 5.6vw, 34px);
  line-height: 1.26;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .board--paper .chapter-title {
  color: var(--char);
}

.page-home .board--night .chapter-title,
.page-home .board--deep .chapter-title {
  color: var(--paper);
}

.page-home .lead {
  margin: 0 0 22px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.8;
}

.page-home .board--paper .lead {
  color: var(--ink);
}

.page-home .board--night .lead,
.page-home .board--deep .lead {
  color: var(--mist);
}

.page-home .note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--frost);
}

.page-home .figure {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 24px;
  object-fit: cover;
  border: 1px solid var(--h-edge);
  background: rgba(16, 26, 51, .35);
}

.page-home .board--paper .figure {
  border-color: var(--h-ink-edge);
  background: rgba(16, 26, 51, .06);
}

/* --- 两步接入 --- */
.page-home .steps {
  display: grid;
  gap: 14px;
}

.page-home .step {
  position: relative;
  padding: 20px 18px 22px;
  scroll-margin-top: 96px;
  border: 1px solid var(--h-ink-edge);
  background: rgba(16, 26, 51, .04);
}

.page-home .board--night .step,
.page-home .board--deep .step {
  border-color: var(--h-edge);
  background: rgba(16, 26, 51, .38);
}

.page-home .step-no {
  display: inline-block;
  padding: 3px 9px;
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--char);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.page-home .step-title {
  margin: 14px 0 0;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--char);
}

.page-home .board--night .step-title,
.page-home .board--deep .step-title {
  color: var(--paper);
}

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

.page-home .board--night .step-text,
.page-home .board--deep .step-text {
  color: var(--mist);
}

.page-home .step-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--h-ink-edge);
  font-size: 13px;
  line-height: 1.6;
  color: var(--frost);
}

.page-home .board--night .step-note,
.page-home .board--deep .step-note {
  border-top-color: var(--h-edge);
}

.page-home .steps-foot {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--h-ink-edge);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

/* --- 小屏与最近版本 --- */
.page-home .mobile-grid {
  display: grid;
  gap: 26px;
}

.page-home .version-rail {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px 0 10px;
  list-style: none;
  overflow-x: auto;
}

.page-home .version-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--h-edge);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.page-home .version-chip.is-current {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--char);
  font-weight: 700;
}

.page-home .version-chip .v-idx {
  font-size: 11px;
  opacity: .72;
}

.page-home .figure--tall {
  max-width: 320px;
  margin: 0 auto;
}

/* --- 推送与节奏 --- */
.page-home .push-grid {
  display: grid;
  gap: 14px;
}

.page-home .push-card {
  padding: 20px 18px 22px;
  border-left: 2px solid var(--cyan);
  background: rgba(221, 227, 236, .05);
}

.page-home .push-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--paper);
}

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

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

.page-home .cadence li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--h-edge);
}

.page-home .cadence-num {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: var(--amber);
}

.page-home .cadence-label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--frost);
}

/* --- 按身份分发 --- */
.page-home .aud-grid {
  display: grid;
  gap: 14px;
}

.page-home .aud {
  display: block;
  padding: 20px 18px 22px;
  border: 1px solid var(--h-ink-edge);
  background: rgba(16, 26, 51, .03);
  color: inherit;
  text-decoration: none;
  transition: border-color .24s var(--ease), background .24s var(--ease);
}

.page-home .aud:hover,
.page-home .aud:focus-visible {
  border-color: var(--orange);
  background: rgba(255, 106, 43, .07);
}

.page-home .aud-idx {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--orange);
}

.page-home .aud-title {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.42;
  font-weight: 800;
  color: var(--char);
}

.page-home .aud-text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink);
}

.page-home .aud-go {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--orange);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--orange);
}

.page-home .aud-foot {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--h-ink-edge);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.page-home .aud-foot a {
  color: var(--char);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
}

.page-home .aud-foot a:hover {
  color: var(--orange);
}

/* --- 底部过渡带 --- */
.page-home .outro {
  position: relative;
  margin-top: 48px;
  overflow: hidden;
  background: var(--char);
}

.page-home .outro-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  opacity: .55;
}

.page-home .outro-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 20px 30px;
  background: linear-gradient(to top, rgba(11, 13, 18, .94), rgba(11, 13, 18, 0));
}

.page-home .outro-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--cyan);
}

.page-home .outro-text {
  margin: 10px 0 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist);
}

/* --- 断点 --- */
@media (min-width: 640px) {
  .page-home .home-context {
    padding-left: 32px;
    padding-right: 32px;
  }

  .page-home .hero-frame {
    margin-left: 32px;
    margin-right: 32px;
    padding: 34px 28px 38px;
  }

  .page-home .home-sec {
    padding-left: 32px;
    padding-right: 32px;
  }

  .page-home .board {
    padding: 34px 28px 40px;
  }

  .page-home .steps {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .page-home .push-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .page-home .outro-copy {
    padding-left: 32px;
    padding-right: 32px;
  }

  .page-home .outro-text {
    font-size: 16px;
  }
}

@media (min-width: 700px) {
  .page-home .hero-lead {
    padding-right: 38px;
  }

  .page-home .hero-annotation {
    display: block;
    position: absolute;
    top: 34px;
    right: 0;
    margin: 0;
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .3em;
    color: var(--cyan);
    opacity: .85;
  }

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

@media (min-width: 860px) {
  .page-home .mobile-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: start;
    gap: 36px;
  }

  .page-home .figure--tall {
    max-width: none;
    margin: 0;
  }

  .page-home .aud-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 44px;
  }

  .page-home .hero-frame {
    padding: 44px 40px 48px;
  }

  .page-home .board {
    padding: 46px 42px 52px;
  }

  .page-home .board--shift-r {
    margin-left: 32px;
  }

  .page-home .board--shift-l {
    margin-right: 32px;
  }

  .page-home .update-item {
    padding: 18px 18px 20px;
  }
}

@media (min-width: 1240px) {
  .page-home .home-context,
  .page-home .hero-frame,
  .page-home .home-sec {
    max-width: var(--maxw);
    margin-left: auto;
    margin-right: auto;
  }

  .page-home .hero-frame {
    margin-top: 16px;
  }

  .page-home .outro-copy {
    padding-left: calc((100% - var(--maxw)) / 2 + 42px);
    padding-right: calc((100% - var(--maxw)) / 2 + 42px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition-duration: .01ms !important;
  }
}
