.page-home {
  --home-rail-w: 11rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin: 0;
  color: var(--ink);
}

.page-home h1 {
  font-size: clamp(2rem, 8vw, 3.6rem);
}

.page-home h2 {
  font-size: clamp(1.5rem, 5.4vw, 2.3rem);
}

.page-home h3 {
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
}

/* ---------- 页内索引 ---------- */
.page-home .home-rail {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--hairline);
  background: rgba(244, 239, 226, 0.94);
  padding: 0.55rem var(--gutter);
  overflow-x: auto;
}

.page-home .home-rail__title {
  margin: 0 0 0.4rem;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--fog);
}

.page-home .home-rail__list {
  display: flex;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-rail__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 0.8rem;
  text-decoration: none;
}

.page-home .home-rail__no {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--cyan);
}

.page-home .home-rail__link[aria-current="true"] {
  background: var(--space);
  border-color: var(--space);
  color: var(--white);
}

.page-home .home-rail__link[aria-current="true"] .home-rail__no {
  color: var(--neon);
}

/* ---------- 章节骨架 ---------- */
.page-home .home-sec {
  position: relative;
  padding-block: clamp(2.4rem, 6vw, 4.4rem);
}

.page-home .home-sec--first {
  padding-top: clamp(1.8rem, 4vw, 3rem);
}

.page-home .home-sec--ice {
  background: rgba(201, 215, 226, 0.32);
  border-block: 1px solid rgba(30, 122, 138, 0.16);
}

.page-home .home-sec--dark {
  background: var(--space);
  color: var(--ice);
  overflow: hidden;
}

.page-home .home-sec--dark h2,
.page-home .home-sec--dark h3 {
  color: var(--white);
}

.page-home .home-sec--dark .home-head__num {
  color: var(--neon);
}

.page-home .home-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.4rem);
  max-width: 62ch;
}

.page-home .home-head__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-home .home-head__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .home-head__label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--fog);
}

.page-home .home-sec--dark .home-head__label {
  color: var(--ice);
  opacity: 0.72;
}

.page-home .home-band {
  display: block;
  width: 72px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--cyan), var(--signal));
}

.page-home .home-band--neon {
  background: linear-gradient(90deg, var(--neon), var(--signal));
}

.page-home .home-head__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--fog);
}

.page-home .home-sec--dark .home-head__lead {
  color: var(--ice);
  opacity: 0.86;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.8rem);
}

.page-home .home-eyebrow {
  margin: 0 0 0.8rem;
  display: inline-block;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(30, 122, 138, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(30, 122, 138, 0.07);
}

.page-home .home-lead {
  margin: 1rem 0 0;
  font-size: clamp(0.95rem, 2.6vw, 1.08rem);
  line-height: 1.85;
  color: #24303d;
  max-width: 46ch;
}

.page-home .home-stats {
  display: grid;
  gap: 1rem;
  margin: clamp(1.5rem, 4vw, 2.2rem) 0;
}

.page-home .home-stat {
  border-left: 2px solid var(--cyan);
  padding-left: 0.85rem;
}

.page-home .home-stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--space);
}

.page-home .home-stat__unit {
  font-size: 0.78rem;
  color: var(--cyan);
  margin-left: 0.25rem;
}

.page-home .home-stat__label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--fog);
}

.page-home .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-home .home-hero__visual {
  margin: 0;
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--space);
  box-shadow: var(--shadow-float);
}

.page-home .home-hero__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
}

.page-home .home-entries {
  display: flex;
  gap: 0.75rem;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding-bottom: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-entry {
  flex: 0 0 min(72vw, 15rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan);
}

.page-home .home-entry__no {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .home-entry__title {
  font-weight: 700;
  font-size: 1rem;
}

.page-home .home-entry__desc {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--fog);
}

/* ---------- 排名对照 ---------- */
.page-home .home-rank-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.page-home .home-rank-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.1);
}

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

.page-home .home-rank-board {
  border-top: 1px solid rgba(201, 215, 226, 0.22);
}

.page-home .home-rank-board__head {
  display: none;
}

.page-home .home-rank {
  border-bottom: 1px solid rgba(201, 215, 226, 0.18);
}

.page-home .home-rank__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name value"
    "track track";
  gap: 0.55rem 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.page-home .home-rank__row::-webkit-details-marker {
  display: none;
}

.page-home .home-rank__row:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.page-home .home-rank[open] .home-rank__row {
  background: rgba(168, 255, 79, 0.06);
}

.page-home .home-rank__name {
  grid-area: name;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--white);
}

.page-home .home-rank__pos {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--neon);
}

.page-home .home-rank__track {
  grid-area: track;
  position: relative;
  display: block;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background:
    repeating-linear-gradient(90deg, rgba(201, 215, 226, 0.22) 0 1px, transparent 1px 20%),
    rgba(201, 215, 226, 0.14);
  overflow: hidden;
}

.page-home .home-rank__bar {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--cyan), var(--neon));
  transition: width 0.24s ease;
}

.page-home .home-rank__value {
  grid-area: value;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--neon);
  text-align: right;
}

.page-home .home-rank__peek {
  margin: 0;
  padding: 0 0 1rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--ice);
  max-width: 60ch;
}

.page-home .home-rank__note {
  margin: 1.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ice);
  opacity: 0.85;
  max-width: 60ch;
}

/* ---------- 时间轴 ---------- */
.page-home .home-timeline {
  display: grid;
  gap: 1.2rem;
  margin: 0 0 clamp(1.8rem, 4vw, 2.6rem);
  padding: 0;
  list-style: none;
}

.page-home .home-node {
  position: relative;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 2px solid var(--hairline);
}

.page-home .home-node::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(30, 122, 138, 0.14);
}

.page-home .home-node--now {
  border-top-color: rgba(255, 107, 61, 0.45);
}

.page-home .home-node--now::after {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.18);
}

.page-home .home-node__time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--signal);
  letter-spacing: 0.06em;
}

.page-home .home-node__title {
  font-weight: 700;
  font-size: 0.98rem;
}

.page-home .home-node__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--fog);
}

/* ---------- 更新条目与筛选 ---------- */
.page-home .home-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.page-home .home-filter .yk-chip {
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.page-home .home-filter .yk-chip:hover {
  border-color: var(--cyan);
}

.page-home .home-filter .yk-chip[aria-pressed="true"],
.page-home .home-filter .yk-chip.is-active {
  background: var(--space);
  border-color: var(--space);
  color: var(--white);
}

.page-home .home-feed {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-feed__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.page-home .home-feed__time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fog);
}

.page-home .home-feed__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.page-home .home-feed__title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.page-home .home-feed__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--fog);
}

.page-home .home-feed__empty {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--fog);
}

/* ---------- 回看与比分双栏 ---------- */
.page-home .home-duo {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.8rem);
}

.page-home .home-duo__col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.page-home .home-duo__visual {
  margin: 0 0 0.4rem;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--space);
}

.page-home .home-duo__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.7);
}

.page-home .home-duo__title {
  margin-top: 0.2rem;
}

.page-home .home-duo__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #24303d;
}

.page-home .home-more {
  align-self: flex-start;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 122, 138, 0.45);
  padding-bottom: 0.1rem;
}

.page-home .home-more:hover,
.page-home .home-more:focus-visible {
  color: var(--space);
  border-bottom-color: var(--space);
}

.page-home .home-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-s);
  background: var(--white);
  border: 1px solid rgba(30, 122, 138, 0.18);
}

.page-home .home-table {
  width: 100%;
  min-width: 26rem;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.page-home .home-table__cap {
  text-align: left;
  padding: 0.7rem 0.9rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--fog);
}

.page-home .home-table th,
.page-home .home-table td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(17, 26, 36, 0.08);
}

.page-home .home-table thead th {
  background: var(--ice);
  color: var(--space);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-home .home-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.page-home .home-table tbody td {
  font-family: var(--font-mono);
  color: var(--space);
}

.page-home .home-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(30, 122, 138, 0.12);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.72rem;
}

.page-home .home-pill--now {
  background: rgba(255, 107, 61, 0.16);
  color: #b83c14;
}

/* ---------- 连续对照 ---------- */
.page-home .home-hint {
  border: 1px dashed rgba(168, 255, 79, 0.55);
  border-radius: var(--radius-m);
  padding: 0.75rem 0.95rem;
  background: rgba(168, 255, 79, 0.07);
  margin-bottom: 1.3rem;
}

.page-home .home-hint summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--neon);
  list-style: none;
}

.page-home .home-hint summary::-webkit-details-marker {
  display: none;
}

.page-home .home-hint p {
  margin: 0.6rem 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--ice);
}

.page-home .home-cont {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.6rem);
}

.page-home .home-cont__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .home-cont__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ice);
  max-width: 48ch;
}

.page-home .home-cont__list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-cont__item {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: baseline;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(201, 215, 226, 0.2);
}

.page-home .home-cont__num {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  color: var(--neon);
}

.page-home .home-cont__text {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ice);
}

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

.page-home .home-cont__visual {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid rgba(201, 215, 226, 0.25);
}

.page-home .home-cont__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.05);
}

/* ---------- 起步路径与联系 ---------- */
.page-home .home-paths {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-path {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--hairline);
}

.page-home .home-path:last-child {
  border-bottom: 1px solid var(--hairline);
}

.page-home .home-path__no {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--signal);
  padding-top: 0.15rem;
}

.page-home .home-path__link {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--space);
  text-decoration: none;
  border-bottom: 2px solid rgba(30, 122, 138, 0.35);
}

.page-home .home-path__link:hover,
.page-home .home-path__link:focus-visible {
  border-bottom-color: var(--signal);
}

.page-home .home-path__desc {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--fog);
}

.page-home .home-contact {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--space);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: clamp(1.2rem, 3.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.page-home .home-contact__title {
  margin: 0 0 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--neon);
}

.page-home .home-contact__line {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ice);
  word-break: break-word;
}

.page-home .home-contact__line .yk-mono {
  color: var(--white);
  font-family: var(--font-mono);
}

.page-home .home-contact__note {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--ice);
  opacity: 0.88;
  max-width: 58ch;
}

.page-home .home-contact__btn {
  align-self: flex-start;
  margin-top: 0.9rem;
}

/* ---------- 移动端优先的小修 ---------- */
@media (max-width: 519px) {
  .page-home .home-entry {
    flex-basis: 78vw;
  }

  .page-home .home-rank__name {
    font-size: 0.88rem;
  }
}

/* ---------- 平板 ---------- */
@media (min-width: 640px) {
  .page-home .home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }

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

  .page-home .home-feed__item {
    grid-template-columns: 10rem minmax(0, 1fr);
    align-items: baseline;
    gap: 1rem;
  }

  .page-home .home-rank__row {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 4rem;
    grid-template-areas: "name track value";
    gap: 0.9rem;
    padding: 1rem 0;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 1fr) clamp(210px, 24vw, 290px);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.4rem);
  }

  .page-home .home-hero__visual img {
    aspect-ratio: 3 / 4;
  }

  .page-home .home-duo {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.2rem);
    align-items: start;
  }

  .page-home .home-cont {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.4rem);
  }

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

  .page-home .home-hint {
    display: none;
  }

  .page-home .home-rank-board__head {
    display: grid;
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 4rem;
    gap: 0.9rem;
    padding: 0.6rem 0;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--ice);
    opacity: 0.6;
  }

  .page-home .home-rank-board__head span:last-child {
    text-align: right;
  }
}

/* ---------- 宽屏左侧固定索引 ---------- */
@media (min-width: 1180px) {
  .page-home {
    padding-left: 13rem;
  }

  .page-home .home-rail {
    position: fixed;
    top: 50%;
    left: 1.4rem;
    transform: translateY(-50%);
    width: var(--home-rail-w);
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .page-home .home-rail__title {
    margin-bottom: 0.7rem;
    padding-left: 0.8rem;
  }

  .page-home .home-rail__list {
    flex-direction: column;
    gap: 0.15rem;
  }

  .page-home .home-rail__link {
    padding: 0.4rem 0.5rem 0.4rem 0.8rem;
    border: 0;
    border-left: 2px solid var(--hairline);
    border-radius: 0;
    background: transparent;
    font-size: 0.82rem;
    white-space: normal;
  }

  .page-home .home-rail__link[aria-current="true"] {
    background: transparent;
    border-left-color: var(--signal);
    color: var(--space);
    font-weight: 700;
  }

  .page-home .home-rail__link[aria-current="true"] .home-rail__no {
    color: var(--signal);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .home-rank__bar,
  .page-home .home-filter .yk-chip {
    transition: none;
  }
}
