.page-home {
  --home-cut: 14px;
  font-family: var(--font-body);
  color: var(--fg);
  background:
    radial-gradient(900px 520px at 92% -6%, rgba(43, 230, 192, .11), transparent 62%),
    radial-gradient(760px 460px at 2% 14%, rgba(255, 90, 43, .07), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

.page-home .hero {
  padding: 24px 0 0;
  border-bottom: 1px solid var(--border);
}

/* ---------- 首屏 ---------- */

.page-home .hero__grid {
  display: grid;
  gap: 32px;
  padding: 24px 0 40px;
}

.page-home .hero__title {
  margin: 12px 0 18px;
  font-size: clamp(2.5rem, 9vw, 5.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--fg);
}

.page-home .hero__lead {
  margin: 0 0 24px;
  max-width: 42ch;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--fg-muted);
}

.page-home .hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

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

.page-home .hero__visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--bg-2);
  clip-path: polygon(
    0 var(--home-cut),
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}

.page-home .hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: .52;
  filter: saturate(.85) contrast(1.08);
}

.page-home .hero__grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .7;
}

.page-home .board {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 20px 20px;
  background: linear-gradient(to top, rgba(4, 18, 14, .97) 42%, rgba(4, 18, 14, .74) 76%, transparent 100%);
}

.page-home .board__label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .board__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(31, 111, 92, .55);
}

.page-home .board__row:last-child {
  border-bottom: 0;
}

.page-home .board__num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.page-home .board__num--cyan { color: var(--cyan); }
.page-home .board__num--amber { color: var(--amber); }
.page-home .board__num--hot { color: var(--hot); }

.page-home .board__unit {
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--fg-muted);
}

/* ---------- 入口卡片与筛选 ---------- */

.page-home .entries {
  padding: 8px 0 48px;
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.page-home .filter-btn {
  padding: 8px 16px;
  font: inherit;
  font-size: .84rem;
  letter-spacing: .06em;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
  clip-path: polygon(
    0 8px,
    8px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%
  );
}

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

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

.page-home .entry-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.page-home .entry {
  padding: 22px 20px 24px;
}

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

.page-home .entry__idx {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  color: var(--amber);
}

.page-home .entry__title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--fg);
}

.page-home .entry__text {
  margin: 0 0 18px;
  font-size: .94rem;
  line-height: 1.72;
  color: var(--fg-muted);
}

.page-home .entry__link {
  display: inline-block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 230, 192, .42);
  padding-bottom: 2px;
}

.page-home .entry__link:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

.page-home .filter-empty {
  margin: 16px 0 0;
  padding: 16px 18px;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--fg-muted);
  background: var(--wash);
  border-left: 2px solid var(--accent);
}

/* ---------- 章节通用 ---------- */

.page-home .sec {
  padding: 56px 0;
}

.page-home .sec-head {
  margin: 0 0 32px;
  max-width: 68ch;
}

.page-home .chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-home .chapter-tag::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--border);
}

.page-home .sec-title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--fg);
}

.page-home .sec-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--fg-muted);
}

/* ---------- 两步上手 ---------- */

.page-home .steps-grid {
  display: grid;
  gap: 28px;
}

.page-home .step {
  position: relative;
  margin-bottom: 14px;
  padding: 20px 20px 22px 66px;
  background: var(--bg-3);
  clip-path: polygon(
    0 var(--home-cut),
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}

.page-home .step__n {
  position: absolute;
  left: 20px;
  top: 18px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.page-home .step__title {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 900;
  color: var(--fg);
}

.page-home .step__text {
  margin: 0;
  font-size: .94rem;
  line-height: 1.72;
  color: var(--fg-muted);
}

.page-home .step__after {
  padding: 18px 20px;
  border: 1px dashed var(--border);
}

.page-home .step__after-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--amber);
}

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

.page-home .step__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.page-home .step__list li:last-child {
  margin-bottom: 0;
}

.page-home .step__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.page-home .steps__media {
  margin: 0;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  clip-path: polygon(
    0 var(--home-cut),
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}

.page-home .steps__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(
    0 10px,
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%
  );
}

.page-home .steps__media figcaption {
  margin-top: 12px;
  font-size: .82rem;
  line-height: 1.65;
  color: var(--fg-dim);
}

/* ---------- 数据落位 ---------- */

.page-home .pipe-media {
  margin: 0 0 28px;
  overflow: hidden;
  clip-path: polygon(
    0 18px,
    18px 0,
    100% 0,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    0 100%
  );
}

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

.page-home .pipeline {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.page-home .pipe-card {
  padding: 20px 18px 22px;
  background: linear-gradient(160deg, rgba(20, 52, 42, .95), rgba(10, 31, 24, .95));
  border-left: 2px solid var(--accent);
}

.page-home .pipe-card__n {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--accent);
}

.page-home .pipe-card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--fg);
}

.page-home .pipe-card__text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* ---------- 家庭观赛 ---------- */

.page-home .family-grid {
  display: grid;
  gap: 28px;
}

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

.page-home .family__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(
    0 var(--home-cut),
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}

.page-home .family__media figcaption {
  margin-top: 12px;
  font-size: .82rem;
  line-height: 1.65;
  color: var(--fg-dim);
}

.page-home .family__lead {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-muted);
}

.page-home .family__list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.page-home .family__list li {
  position: relative;
  padding: 0 0 16px 20px;
  margin-bottom: 16px;
  font-size: .94rem;
  line-height: 1.75;
  color: var(--fg-muted);
  border-bottom: 1px solid rgba(31, 111, 92, .4);
}

.page-home .family__list li:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .family__list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
  font-weight: 900;
}

.page-home .family__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 10px;
  height: 1px;
  background: var(--hot);
}

/* ---------- 看台动态 ---------- */

.page-home .feeds {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.page-home .feed {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: background-color .18s ease;
}

.page-home .feed:hover {
  background: var(--stripe);
}

.page-home .feed__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--amber);
}

.page-home .feed__title {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--fg);
}

.page-home .feed__text {
  margin: 0;
  font-size: .93rem;
  line-height: 1.72;
  color: var(--fg-muted);
}

.page-home .feeds__more {
  margin: 28px 0 0;
}

/* ---------- 常见入口 ---------- */

.page-home .help-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

.page-home .help-card {
  display: block;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-3);
  border: 1px solid transparent;
  transition: border-color .16s ease, background-color .16s ease;
  clip-path: polygon(
    0 var(--home-cut),
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}

.page-home .help-card:hover {
  border-color: var(--accent);
  background: var(--wash);
}

.page-home .help-card__title {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 900;
  color: var(--fg);
}

.page-home .help-card__text {
  margin: 0 0 16px;
  font-size: .92rem;
  line-height: 1.72;
  color: var(--fg-muted);
}

.page-home .help-card__go {
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
}

.page-home .folds {
  border-bottom: 1px solid var(--border);
}

.page-home .fold {
  border-top: 1px solid var(--border);
}

.page-home .fold__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  font: inherit;
  font-size: .98rem;
  font-weight: 700;
  text-align: left;
  color: var(--fg);
  background: none;
  border: 0;
  cursor: pointer;
}

.page-home .fold__trigger::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent);
}

.page-home .fold__trigger[aria-expanded="true"]::after {
  content: "–";
}

.page-home .fold__panel {
  padding: 0 0 20px;
}

.page-home .fold__panel p {
  margin: 0;
  max-width: 72ch;
  font-size: .93rem;
  line-height: 1.78;
  color: var(--fg-muted);
}

/* ---------- 响应式 ---------- */

@media (min-width: 720px) {
  .page-home .entry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .page-home .feed {
    grid-template-columns: 130px 1fr;
    gap: 20px;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .page-home .hero {
    padding-top: 32px;
  }

  .page-home .hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: center;
    padding: 40px 0 64px;
  }

  .page-home .hero__visual {
    min-height: 540px;
  }

  .page-home .sec {
    padding: 88px 0;
  }

  .page-home .sec-head {
    margin-bottom: 44px;
  }

  .page-home .steps-grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .steps__media {
    padding: 18px;
  }

  .page-home .family-grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: center;
  }

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

@media (min-width: 1080px) {
  .page-home .entry-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .entry:nth-child(even) {
    transform: translateY(-24px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .entry,
  .page-home .entry__link,
  .page-home .filter-btn,
  .page-home .feed,
  .page-home .help-card {
    transition: none;
  }

  .page-home .entry:nth-child(even) {
    transform: none;
  }
}
