.page-home {
  --home-gap: 16px;
  --home-soft: rgba(159, 178, 166, .78);
  --home-paper-ink: rgba(26, 20, 16, .68);
  background: var(--night);
  color: var(--paper);
  overflow-x: hidden;
}

/* ---------- 状态条 ---------- */
.page-home .home-status {
  border-bottom: 1px solid var(--line);
  background: var(--blue);
}

.page-home .home-status__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 9px;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--moss);
  scrollbar-width: none;
}

.page-home .home-status__inner::-webkit-scrollbar {
  display: none;
}

.page-home .home-status__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.page-home .home-status__k {
  color: rgba(159, 178, 166, .7);
}

.page-home .home-status__v {
  color: var(--paper);
}

.page-home .home-status__item--version .home-status__v {
  color: var(--volt);
  font-weight: 700;
}

.page-home .home-status__item--live {
  color: var(--paper);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding: 24px 0 38px;
  overflow: hidden;
}

.page-home .hero__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-home .hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
  filter: saturate(.75) contrast(1.05);
}

.page-home .hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 12% 18%, rgba(11, 31, 26, .5), rgba(11, 31, 26, .95) 68%),
    linear-gradient(180deg, rgba(14, 42, 58, .45), rgba(11, 31, 26, .9));
}

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

.page-home .hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--moss);
}

.page-home .hero h1 {
  margin: 12px 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 8.6vw, 78px);
  line-height: .96;
  letter-spacing: .005em;
}

.page-home .hero .lede {
  max-width: 34em;
  margin: 0;
  font-size: 16px;
  line-height: 1.74;
  color: var(--home-soft);
}

.page-home .hero__paths {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.page-home .path-card {
  position: relative;
  display: block;
  padding: 13px 15px 12px 17px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 53, 44, .72);
  color: var(--paper);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}

.page-home .path-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--volt);
}

.page-home .path-card:hover,
.page-home .path-card:focus-visible {
  border-color: var(--volt);
  background: rgba(18, 53, 44, .95);
  transform: translateY(-2px);
  outline: none;
}

.page-home .path-card__t {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .02em;
}

.page-home .path-card__d {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--moss);
}

.page-home .board {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(14, 42, 58, .95), rgba(11, 31, 26, .94));
  box-shadow: 0 30px 70px -42px rgba(0, 0, 0, .95);
}

.page-home .board::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--volt), var(--cyan) 52%, transparent);
}

.page-home .board__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 章节通用 ---------- */
.page-home .section {
  padding-block: 46px;
}

.page-home .sec-head {
  max-width: 64ch;
  margin-bottom: 24px;
}

.page-home .sec-head .tally {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--volt);
}

.page-home .sec-head h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5.4vw, 46px);
  line-height: 1.02;
}

.page-home .sec-head .lede {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--moss);
}

.page-home .section--paper .sec-head .lede {
  color: var(--home-paper-ink);
}

/* ---------- 集锦墙 ---------- */
.page-home .clip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .clip-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

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

.page-home .clip-card__body {
  padding-top: 12px;
}

.page-home .clip-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--moss);
}

.page-home .clip-card__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.16;
}

.page-home .clip-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--moss);
}

.page-home .clip-stats .num {
  margin-right: 4px;
  color: var(--paper);
  font-weight: 700;
}

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

/* ---------- 对照数据 ---------- */
.page-home .compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.page-home .compare-chart {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line-ink);
  background: rgba(255, 255, 255, .42);
}

.page-home .compare-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .compare-chart figcaption,
.page-home .compare-figure figcaption {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--home-paper-ink);
}

.page-home .compare-right {
  display: grid;
  gap: 22px;
}

.page-home .compare-table-wrap {
  border: 1px solid var(--line-ink);
  background: rgba(255, 255, 255, .42);
  overflow-x: auto;
}

.page-home .compare-table-wrap .table {
  width: 100%;
  border-collapse: collapse;
}

.page-home .table__sum th,
.page-home .table__sum td {
  font-weight: 700;
  border-top: 1px solid var(--gold);
}

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

.page-home .compare-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-ink);
}

.page-home .compare-note {
  max-width: 72ch;
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 1.76;
  color: var(--home-paper-ink);
}

.page-home .compare-cta {
  margin: 20px 0 0;
}

/* ---------- 常用入口 ---------- */
.page-home .entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-home .entry-grid .entry-card {
  height: 100%;
}

.page-home .entry-grid .entry-card h3 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: .01em;
}

.page-home .entry-grid .entry-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--home-soft);
}

.page-home .keys {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--moss);
}

.page-home .keys a {
  color: var(--volt);
}

.page-home .keys kbd {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--volt);
}

/* ---------- 版本与更新 ---------- */
.page-home .version-band {
  position: relative;
  margin: 0 0 32px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.page-home .version-band img {
  display: block;
  width: 100%;
  height: auto;
  opacity: .48;
}

.page-home .version-band__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(11, 31, 26, 0), rgba(11, 31, 26, .92));
}

.page-home .timeline {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
  border-left: 1px solid var(--line-strong);
}

.page-home .timeline__item {
  position: relative;
  padding-bottom: 24px;
}

.page-home .timeline__item:last-child {
  padding-bottom: 0;
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--volt);
}

.page-home .timeline__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--moss);
}

.page-home .timeline__item h3 {
  margin: 5px 0 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: .01em;
}

.page-home .timeline__item p {
  max-width: 64ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--home-soft);
}

.page-home .versions-more {
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.76;
  color: var(--home-soft);
}

.page-home .versions-more a {
  color: var(--volt);
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-home {
    --home-gap: 18px;
  }

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

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

  .page-home .clip-lead {
    grid-column: span 2;
  }

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

@media (min-width: 900px) {
  .page-home .section {
    padding-block: 68px;
  }

  .page-home .hero {
    padding: 42px 0 60px;
  }

  .page-home .hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 44px;
    align-items: center;
  }

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

  .page-home .compare-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    gap: 32px;
    align-items: start;
  }
}

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

  .page-home .clip-lead {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .path-card,
  .page-home .clip-card {
    transition: none;
  }
}
