.page-home {
  --home-gap: 30px;
  position: relative;
  display: block;
  overflow-x: clip;
  background: var(--deep);
  color: var(--paper);
  padding-bottom: calc(var(--dock-h) + 36px);
}

.page-home .container {
  position: relative;
  z-index: 1;
}

/* ---------- 面包屑 ---------- */
.page-home .home-breadcrumb {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.page-home .home-breadcrumb .breadcrumbs {
  padding: 12px 0;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(158deg, var(--ink) 0%, var(--ink) 40%, var(--deep) 100%);
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -18%;
  width: 72%;
  height: 210%;
  background: linear-gradient(202deg, rgba(201, 162, 75, 0.16), rgba(201, 162, 75, 0) 62%);
  transform: rotate(-13deg);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(46, 82, 69, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 82, 69, 0.55) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(160deg, #000 0%, rgba(0, 0, 0, 0) 74%);
  mask-image: linear-gradient(160deg, #000 0%, rgba(0, 0, 0, 0) 74%);
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  padding: 24px 0 36px;
}

.page-home .home-hero__left {
  min-width: 0;
}

.page-home .home-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.page-home .home-hero__meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--jade);
}

.page-home .home-hero__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.24;
}

.page-home .home-hero__title-main {
  display: block;
  font-size: 23px;
  color: var(--gold-hi);
  text-shadow: 0 0 22px rgba(201, 162, 75, 0.22);
}

.page-home .home-hero__title-sub {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: var(--paper);
}

.page-home .home-hero__lede {
  margin: 0 0 20px;
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--jade);
}

.page-home .entry-nav {
  margin-bottom: 4px;
}

.page-home .entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.page-home .entry-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  height: 100%;
  padding: 11px 11px 11px 12px;
  background: var(--panel);
  border: 1px solid rgba(46, 82, 69, 0.7);
  border-left: 2px solid var(--line);
  color: var(--paper);
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.35;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.page-home .entry-link:hover,
.page-home .entry-link:focus-visible {
  background: var(--lift);
  border-left-color: var(--gold);
  outline: none;
}

.page-home .entry-code {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-home .entry-name {
  min-width: 0;
  color: var(--paper);
  font-weight: 500;
}

.page-home .entry-desc {
  display: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--jade);
  white-space: nowrap;
}

.page-home .home-hero__figure {
  display: none;
  margin: 24px 0 0;
}

.page-home .home-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.85);
}

/* 右栏对照面板 */
.page-home .home-hero__right {
  position: relative;
  min-width: 0;
  padding: 16px 15px 20px;
  background: linear-gradient(166deg, var(--panel) 0%, var(--deep) 100%);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  box-shadow: 0 22px 48px -32px rgba(0, 0, 0, 0.95);
  scroll-margin-top: 84px;
}

.page-home .board-figure {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .board-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.85);
}

.page-home .board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-bottom: 8px;
}

.page-home .board-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .board-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--paper);
}

.page-home .board-lede {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--jade);
}

.page-home .home-hero__right .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 0 12px;
}

.page-home .home-hero__right .filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--jade);
}

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

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

.page-home .board-table th {
  padding: 8px 6px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--jade);
  border-bottom: 1px solid var(--gold);
  white-space: nowrap;
}

.page-home .board-table td {
  padding: 9px 6px;
  font-size: 12.5px;
  color: var(--paper);
  border-bottom: 1px solid rgba(46, 82, 69, 0.6);
  vertical-align: middle;
}

.page-home .board-table tbody tr:nth-child(even) {
  background: rgba(27, 58, 44, 0.42);
}

.page-home .board-table td.num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--gold-hi);
  white-space: nowrap;
}

.page-home .board-note {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--jade);
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

/* ---------- 通用章节 ---------- */
.page-home .home-sec {
  position: relative;
  padding: 54px 0 0;
  scroll-margin-top: 84px;
}

.page-home .home-sec__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.page-home .home-sec__titles h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .home-sec__note {
  margin: 0;
  max-width: 64ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--jade);
}

.page-home .home-sec__tail {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--jade);
}

.page-home .home-sec__tail a {
  color: var(--gold-hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 75, 0.5);
}

.page-home .home-sec__tail a:hover,
.page-home .home-sec__tail a:focus-visible {
  border-bottom-color: var(--gold);
  outline: none;
}

/* ---------- 03 刷新节奏 ---------- */
.page-home .home-sec--refresh {
  overflow: hidden;
}

.page-home .home-sec__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .home-sec__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: brightness(0.7) saturate(0.7);
}

.page-home .pace-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.page-home .pace-seg {
  position: relative;
  padding: 14px 6px;
  background: var(--panel);
  border-top: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--jade);
  text-align: center;
}

.page-home .pace-seg.is-current {
  background: var(--lift);
  border-top-color: var(--gold);
  color: var(--gold-hi);
}

.page-home .pace-seg__idx {
  display: block;
}

.page-home .pace-seg__cue {
  display: block;
  margin-top: 5px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.page-home .pace-seg.is-current::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: home-pulse 600ms ease-out 1;
}

@keyframes home-pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.page-home .pace-meta {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.page-home .pace-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: baseline;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(46, 82, 69, 0.6);
}

.page-home .pace-row__key {
  font-size: 12.5px;
  color: var(--jade);
}

.page-home .pace-row__val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--gold-hi);
  text-align: right;
}

/* ---------- 04 三条去路 ---------- */
.page-home .route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .route-link {
  display: block;
  height: 100%;
  padding: 22px 20px;
  background: var(--panel);
  color: var(--paper);
  text-decoration: none;
  transition: background 0.2s ease;
}

.page-home .route-link:hover,
.page-home .route-link:focus-visible {
  background: var(--lift);
  outline: none;
}

.page-home .route-code {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .route-title {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--paper);
}

.page-home .route-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--jade);
}

/* ---------- 05 底部工具条说明 ---------- */
.page-home .dock-note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .dock-note {
  padding: 18px 14px;
  background: var(--deep);
}

.page-home .dock-note__key {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold-hi);
}

.page-home .dock-note__val {
  display: block;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--jade);
}

/* ---------- 下缘氛围图 ---------- */
.page-home .home-anchor {
  margin: 56px 0 0;
  border-top: 1px solid var(--line);
}

.page-home .home-anchor img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.85);
}

/* ---------- 平板起 ---------- */
@media (min-width: 620px) {
  .page-home .board-figure img {
    aspect-ratio: 16 / 7;
  }

  .page-home .entry-link {
    font-size: 13px;
    padding: 12px 13px;
  }

  .page-home .home-hero__title-main {
    font-size: 27px;
  }

  .page-home .home-hero__title-sub {
    font-size: 21px;
  }

  .page-home .pace-seg {
    font-size: 11.5px;
    padding: 16px 8px;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1000px) {
  .page-home .home-hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: 0;
    align-items: start;
    padding: 44px 0 0;
  }

  .page-home .home-hero__left {
    padding: 0 52px 0 0;
  }

  .page-home .home-hero__title-main {
    font-size: 34px;
  }

  .page-home .home-hero__title-sub {
    font-size: 25px;
  }

  .page-home .home-hero__lede {
    font-size: 15px;
  }

  .page-home .entry-desc {
    display: inline;
  }

  .page-home .home-hero__figure {
    display: block;
  }

  .page-home .home-hero__right {
    margin: 0 0 0 0;
    padding: 30px 30px 34px 42px;
    clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
    min-height: 100%;
  }

  .page-home .home-hero__right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 45%, var(--gold-hi) 100%);
    pointer-events: none;
  }

  .page-home .board-figure img {
    aspect-ratio: 16 / 8;
  }

  .page-home .home-sec {
    padding-top: 78px;
  }

  .page-home .home-sec__titles h2 {
    font-size: 24px;
  }

  .page-home .home-sec__note {
    font-size: 14.5px;
  }

  .page-home .pace-seg {
    padding: 20px 10px;
    font-size: 12px;
  }

  .page-home .pace-row {
    padding: 13px 2px;
  }

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

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

  .page-home .home-anchor img {
    aspect-ratio: 4 / 1;
  }
}

@media (min-width: 1280px) {
  .page-home .home-hero__grid {
    padding-top: 56px;
  }

  .page-home .home-hero__title-main {
    font-size: 38px;
  }

  .page-home .home-hero__title-sub {
    font-size: 27px;
  }
}

/* ---------- 窄屏表格折叠 ---------- */
@media (max-width: 619px) {
  .page-home .board-table,
  .page-home .board-table tbody {
    display: block;
  }

  .page-home .board-table thead {
    display: none;
  }

  .page-home .board-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(46, 82, 69, 0.6);
  }

  .page-home .board-table tbody tr:nth-child(even) {
    background: rgba(27, 58, 44, 0.36);
  }

  .page-home .board-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    border: 0;
  }

  .page-home .board-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    color: var(--jade);
    white-space: nowrap;
  }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .pace-seg.is-current::after {
    animation: none;
    opacity: 1;
  }

  .page-home .entry-link,
  .page-home .route-link {
    transition: none;
  }
}
