.page-home {
  --home-gap: 18px;
  --home-radius: var(--radius-lg);
  background: var(--mist);
  color: var(--ink);
}

.page-home .home-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 通用小件 ---------- */
.page-home .home-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cursor);
}

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

.page-home .home-lede {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.page-home .home-section-head {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-home .home-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 4.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--ink-black);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  padding: calc(var(--header-h) + 30px) 0 clamp(44px, 6vw, 76px);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(174, 189, 187, 0.85) 0%, rgba(220, 227, 225, 0) 62%),
    var(--mist);
}

.page-home .home-context {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cursor);
}

.page-home .home-context-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 1px;
}

.page-home .home-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .home-hero-figure {
  margin: 0;
  border-radius: var(--home-radius);
  overflow: hidden;
  background: var(--mist-deep);
}

.page-home .home-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.page-home .home-hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 5.4vw, 50px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink-black);
}

.page-home .home-hero-copy .lede {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

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

.page-home .home-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 18px 40px;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-home .home-entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--line);
  transition: background 0.25s var(--ease);
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-visible {
  background: #fff;
  border-color: var(--mist-deep);
  transform: translateY(-2px);
  outline: none;
}

.page-home .home-entry:hover::before,
.page-home .home-entry:focus-visible::before {
  background: var(--orange);
}

.page-home .home-entry-no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-home .home-entry-kicker {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cursor);
}

.page-home .home-entry-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-black);
}

.page-home .home-entry-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--cursor);
}

.page-home .home-entry-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 15px;
  color: var(--ink);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.page-home .home-entry:hover .home-entry-arrow {
  color: var(--orange);
  transform: translateX(3px);
}

.page-home .home-hero-note {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--cursor);
}

/* ---------- 版本对照 ---------- */
.page-home .home-compare {
  padding: clamp(48px, 6.5vw, 92px) 0;
  background: var(--paper);
}

.page-home .home-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
}

.page-home .home-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  color: var(--ink);
}

.page-home .home-compare-table th,
.page-home .home-compare-table td {
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.page-home .home-compare-table thead th {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cursor);
  border-bottom: 1px solid var(--ink);
}

.page-home .home-compare-table thead th:nth-child(3) {
  color: var(--ink-black);
}

.page-home .home-compare-table tbody th {
  font-weight: 500;
  color: var(--cursor);
  white-space: nowrap;
}

.page-home .home-compare-table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-black);
  white-space: nowrap;
}

.page-home .home-mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: var(--orange);
  border-radius: 1px;
  vertical-align: middle;
}

.page-home .home-compare-figure {
  margin: 0;
}

.page-home .home-compare-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  border-radius: var(--home-radius);
  background: var(--mist-deep);
}

.page-home .home-compare-figure .figure-caption {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--cursor);
}

.page-home .home-compare-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-home .home-compare-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--cursor);
}

/* ---------- 周末连看 ---------- */
.page-home .home-weekend {
  padding: clamp(48px, 6.5vw, 92px) 0;
  background: var(--mist);
}

.page-home .home-weekend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
}

.page-home .home-weekend-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(23px, 4.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.24;
  color: var(--ink-black);
}

.page-home .home-weekend-copy > p {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

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

.page-home .home-saved-item {
  position: relative;
  padding-left: 26px;
  display: grid;
  gap: 3px;
}

.page-home .home-saved-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 1px;
}

.page-home .home-saved-item::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: -14px;
  width: 1px;
  background: var(--line);
}

.page-home .home-saved-item:last-child::after {
  display: none;
}

.page-home .home-saved-item strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-black);
}

.page-home .home-saved-item span {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--cursor);
}

.page-home .home-weekend-figure {
  margin: 0;
}

.page-home .home-weekend-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border-radius: var(--home-radius);
  background: var(--paper);
}

.page-home .home-weekend-figure .figure-caption {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--cursor);
}

/* ---------- 主题库 ---------- */
.page-home .home-topics {
  padding: clamp(48px, 6.5vw, 92px) 0;
  background: var(--paper);
}

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

.page-home .home-filter-bar .filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

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

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

.page-home .home-topic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: none;
}

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

.page-home .home-topic h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-black);
}

.page-home .home-topic p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.page-home .home-topic .home-topic-meta {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--cursor);
}

.page-home .home-filter-empty {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--cursor);
}

.page-home .home-topics-more {
  margin: 26px 0 0;
}

.page-home .home-topics-more a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-black);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

.page-home .home-topics-more a:hover {
  color: var(--orange);
}

/* ---------- 协作网络 ---------- */
.page-home .home-network {
  padding: clamp(52px, 7vw, 100px) 0;
  background: var(--ink-black);
  color: var(--paper);
}

.page-home .home-network-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.page-home .home-network-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(23px, 4.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.26;
  color: var(--paper);
}

.page-home .home-network-copy > p {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--mist-deep);
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  margin: 30px 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(193, 203, 200, 0.28);
}

.page-home .home-stat dt {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist-deep);
  order: 2;
}

.page-home .home-stat dd {
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12.5px;
  color: var(--mist-deep);
}

.page-home .home-stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cyan);
}

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

.page-home .home-btn-ghost-light {
  color: var(--paper);
  border-color: rgba(246, 243, 234, 0.45);
}

.page-home .home-btn-ghost-light:hover {
  background: rgba(246, 243, 234, 0.12);
  border-color: var(--paper);
}

.page-home .home-network-figure {
  margin: 0;
}

.page-home .home-network-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--home-radius);
  background: rgba(174, 189, 187, 0.14);
}

.page-home .home-network-figure .figure-caption {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist-deep);
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-home .home-entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .page-home .home-compare-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .home-hero-figure {
    grid-column: 1 / 6;
    grid-row: 1 / 3;
  }

  .page-home .home-hero-figure img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 420px;
  }

  .page-home .home-hero-copy {
    grid-column: 6 / 13;
    grid-row: 1;
    align-self: end;
  }

  .page-home .home-entries {
    grid-column: 6 / 13;
    grid-row: 2;
  }

  .page-home .home-weekend-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .page-home .home-network-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

@media (min-width: 1080px) {
  .page-home .home-compare-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

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

  .page-home .home-hero-copy h1 {
    max-width: 15ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .home-entry::before,
  .page-home .home-entry-arrow,
  .page-home .home-filter-bar .filter-btn {
    transition: none;
  }

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

  .page-home .home-entry:hover .home-entry-arrow {
    transform: none;
  }
}
