.page-home {
  --gutter: 20px;
  --ph-hair: 1px solid var(--weave);
  --ph-hair-dark: 1px solid rgba(244, 239, 230, 0.22);
  --ph-muted: rgba(26, 26, 24, 0.62);
  --ph-on-navy: rgba(244, 239, 230, 0.86);
  --ph-weave-soft: repeating-linear-gradient(115deg,
    rgba(168, 52, 42, 0.05) 0 6px,
    rgba(232, 179, 60, 0.045) 6px 9px,
    rgba(31, 138, 122, 0.045) 9px 15px,
    rgba(20, 49, 76, 0) 15px 28px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

/* ---------- 顶部上下文条 ---------- */
.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px var(--gutter);
  border-bottom: var(--ph-hair);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ph-muted);
}

.page-home .ctx-coord {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--flag-red);
}

.page-home .ctx-sep {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--weave);
}

.page-home .ctx-text {
  letter-spacing: 0.01em;
}

/* ---------- 首屏堆叠面板 ---------- */
.page-home .home-stack {
  position: relative;
  padding-bottom: 44px;
}

.page-home .stack-canvas {
  position: relative;
  margin: 0;
  height: 236px;
  overflow: hidden;
  border-bottom: var(--ph-hair);
}

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

.page-home .stack-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 49, 76, 0.18) 0%,
    rgba(20, 49, 76, 0.30) 42%,
    rgba(244, 239, 230, 0.94) 100%);
  pointer-events: none;
}

.page-home .stack-deck {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: -60px;
  padding: 0 var(--gutter);
}

.page-home .panel--declare {
  position: relative;
  background: var(--paper);
  border: var(--ph-hair);
  padding: 32px 20px 30px;
}

.page-home .panel--declare::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 5px;
  background: repeating-linear-gradient(115deg,
    var(--flag-red) 0 20px,
    var(--gold) 20px 28px,
    var(--jade) 28px 46px,
    var(--orange) 46px 54px,
    var(--navy) 54px 84px);
}

.page-home .eyebrow {
  display: block;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flag-red);
}

.page-home .page-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 8vw, 62px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.page-home .page-lede {
  margin: 0 0 26px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(26, 26, 24, 0.78);
}

.page-home .declare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 状态面板 ---------- */
.page-home .panel--state {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  border: var(--ph-hair-dark);
  padding: 26px 20px 30px;
}

.page-home .state-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .state-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .state-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 239, 230, 0.7);
}

.page-home .tab-list {
  display: flex;
  flex-wrap: wrap;
  border: var(--ph-hair-dark);
  margin-bottom: 20px;
}

.page-home .tab {
  flex: 1 1 130px;
  appearance: none;
  background: transparent;
  color: rgba(244, 239, 230, 0.8);
  border: none;
  border-right: var(--ph-hair-dark);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.page-home .tab:last-child {
  border-right: none;
}

.page-home .tab:hover {
  background: rgba(244, 239, 230, 0.08);
  color: var(--paper);
}

.page-home .tab[aria-selected="true"] {
  background: var(--flag-red);
  color: var(--paper);
  font-weight: 700;
}

.page-home .tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.page-home .tab-panel[hidden] {
  display: none;
}

.page-home .tab-panel + .tab-panel {
  border-top: var(--ph-hair-dark);
  padding-top: 20px;
}

.page-home .state-figure {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: clamp(38px, 12vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.page-home .tab-panel p {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ph-on-navy);
}

.page-home .panel--state .mono,
.page-home .home-search .mono {
  font-family: var(--font-mono);
  color: var(--gold);
}

/* ---------- 通用小节标题 ---------- */
.page-home .section-title {
  margin: 0 0 14px;
  font-size: clamp(22px, 5.4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .section-title--light {
  color: var(--paper);
}

.page-home .section-lede {
  margin: 0 0 26px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(26, 26, 24, 0.75);
}

/* ---------- 近 90 天时间线 ---------- */
.page-home .home-timeline {
  background: var(--paper);
}

.page-home .timeline-figure {
  margin: 0;
  height: 190px;
  overflow: hidden;
  border-top: var(--ph-hair);
  border-bottom: var(--ph-hair);
}

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

.page-home .timeline-inner {
  padding: 34px var(--gutter) 52px;
}

.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: var(--ph-hair);
}

.page-home .timeline-item {
  position: relative;
  padding: 0 0 30px;
}

.page-home .timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border: 1px solid var(--weave);
}

.page-home .timeline-item:first-child::before {
  background: var(--flag-red);
  border-color: var(--flag-red);
}

.page-home .timeline-item--tail {
  padding-bottom: 0;
}

.page-home .timeline-mark {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--flag-red);
}

.page-home .timeline-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink);
}

.page-home .timeline-text {
  margin: 0 0 10px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.76;
  color: rgba(26, 26, 24, 0.74);
}

.page-home .timeline-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--weave);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-home .timeline-link::after {
  content: " →";
}

.page-home .timeline-link:hover,
.page-home .timeline-link:focus-visible {
  color: var(--flag-red);
  border-color: var(--flag-red);
}

/* ---------- 第一次来的三条路 ---------- */
.page-home .home-paths {
  background-color: var(--paper);
  background-image: var(--ph-weave-soft);
  border-top: var(--ph-hair);
  padding: 46px var(--gutter) 52px;
}

.page-home .paths-grid {
  display: grid;
  gap: 30px;
}

.page-home .paths-intro .section-lede {
  margin-bottom: 24px;
}

.page-home .paths-figure {
  margin: 0;
  border: var(--ph-hair);
  background: var(--paper);
}

.page-home .paths-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .figure-caption {
  margin: 0;
  padding: 12px 14px;
  border-top: var(--ph-hair);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ph-muted);
}

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

.page-home .path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 26px;
  background: var(--paper);
  border: var(--ph-hair);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-home .path-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  bottom: -1px;
  width: 3px;
}

.page-home .path-card--a::before {
  background: var(--flag-red);
}

.page-home .path-card--b::before {
  background: var(--jade);
}

.page-home .path-card--c::before {
  background: var(--orange);
}

.page-home .path-card:hover,
.page-home .path-card:focus-within {
  background: rgba(232, 179, 60, 0.1);
  border-color: var(--navy);
}

.page-home .path-card:focus-within {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.page-home .path-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--flag-red);
}

.page-home .path-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .path-text {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.76;
  color: rgba(26, 26, 24, 0.75);
}

.page-home .path-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 700;
  color: var(--flag-red);
  text-decoration: none;
  border-bottom: 1px solid var(--flag-red);
  padding-bottom: 2px;
}

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

.page-home .path-link:hover,
.page-home .path-link:focus-visible {
  color: var(--flag-red-deep);
  border-color: var(--flag-red-deep);
}

/* ---------- 检索说明 ---------- */
.page-home .home-search {
  background: var(--navy);
  color: var(--paper);
}

.page-home .search-figure {
  margin: 0;
  height: 148px;
  overflow: hidden;
  border-bottom: var(--ph-hair-dark);
}

.page-home .search-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.page-home .search-inner {
  padding: 32px var(--gutter) 46px;
}

.page-home .home-search .eyebrow {
  color: var(--gold);
}

.page-home .search-lede {
  margin: 0 0 26px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ph-on-navy);
}

.page-home .axis-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: var(--ph-hair-dark);
}

.page-home .axis {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-bottom: var(--ph-hair-dark);
}

.page-home .axis-key {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-home .axis-desc {
  font-size: 15px;
  line-height: 1.72;
  color: rgba(244, 239, 230, 0.78);
}

/* ---------- 维护口径表 ---------- */
.page-home .home-cadence {
  background: var(--paper);
  padding: 46px var(--gutter) 54px;
}

.page-home .cadence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.page-home .cadence-table th,
.page-home .cadence-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 10px;
  border-bottom: var(--ph-hair);
}

.page-home .cadence-table thead th {
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ph-muted);
  border-bottom: 2px solid var(--ink);
}

.page-home .cadence-table tbody th {
  width: 34%;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .cadence-table td {
  line-height: 1.76;
  color: rgba(26, 26, 24, 0.78);
}

.page-home .cadence-table .mono {
  font-family: var(--font-mono);
  color: var(--flag-red);
}

.page-home .cadence-note {
  margin: 22px 0 0;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(26, 26, 24, 0.72);
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-home {
    --gutter: 32px;
  }

  .page-home .stack-canvas {
    height: 300px;
  }

  .page-home .panel--declare {
    padding: 38px 34px 36px;
  }

  .page-home .panel--state {
    padding: 30px 28px 34px;
  }

  .page-home .timeline-figure {
    height: 260px;
  }

  .page-home .axis {
    flex-direction: row;
    align-items: baseline;
    gap: 20px;
  }

  .page-home .axis-key {
    flex: 0 0 118px;
  }
}

@media (min-width: 960px) {
  .page-home {
    --gutter: 44px;
  }

  .page-home .home-context {
    padding: 14px var(--gutter);
  }

  .page-home .stack-canvas {
    height: 420px;
  }

  .page-home .stack-deck {
    grid-template-columns: repeat(12, 1fr);
    gap: 26px;
    align-items: start;
    max-width: var(--measure);
    margin: -140px auto 0;
    padding: 0 var(--gutter) 60px;
  }

  .page-home .panel--declare {
    grid-column: 1 / 8;
    padding: 44px 40px 42px;
  }

  .page-home .panel--state {
    grid-column: 8 / 13;
    margin-top: 72px;
    padding: 30px 26px 34px;
  }

  .page-home .timeline-figure {
    height: 320px;
  }

  .page-home .timeline-inner {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: 52px;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 56px var(--gutter) 68px;
  }

  .page-home .timeline-head .section-lede {
    margin-bottom: 0;
  }

  .page-home .home-paths {
    padding: 56px var(--gutter) 64px;
  }

  .page-home .paths-grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
    max-width: var(--measure);
    margin: 0 auto;
  }

  .page-home .path-list {
    gap: 18px;
  }

  .page-home .path-card {
    padding: 28px 26px 30px;
  }

  .page-home .search-figure {
    height: 210px;
  }

  .page-home .search-inner {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 44px var(--gutter) 56px;
  }

  .page-home .home-cadence {
    padding: 56px var(--gutter) 66px;
  }

  .page-home .cadence-inner {
    max-width: var(--measure);
    margin: 0 auto;
  }

  .page-home .cadence-table tbody th {
    width: 26%;
    white-space: nowrap;
  }
}

@media (min-width: 1240px) {
  .page-home .page-title {
    letter-spacing: -0.03em;
  }

  .page-home .panel--declare {
    grid-column: 1 / 8;
  }

  .page-home .panel--state {
    grid-column: 8 / 13;
    margin-top: 96px;
  }
}
