.page-home {
  background: var(--ink);
  color: var(--text);
}

.page-home .home-context {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.page-home .home-context .mono {
  color: var(--orange);
}

.page-home .home-context::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  padding: 30px 0 8px;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(255, 90, 31, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(63, 169, 245, 0.06), transparent 55%);
}

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

.page-home .home-rail {
  border-left: 3px solid var(--orange);
  padding: 2px 0 2px 16px;
}

.page-home .home-rail__brand {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .home-rail__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--green);
  border: 1px solid rgba(47, 163, 107, 0.45);
}

.page-home .home-rail__dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}

.page-home .home-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.page-home .home-rail__list .mono {
  color: var(--paper);
  font-size: 13px;
}

.page-home .home-hero__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 5vw, 50px);
  background: var(--panel);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.page-home .home-hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 17, 20, 0.5) 0%, rgba(14, 17, 20, 0.88) 68%, rgba(14, 17, 20, 0.96) 100%);
}

.page-home .home-hero__copy {
  position: relative;
  z-index: 2;
}

.page-home .home-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 7.6vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .home-hero h1 span {
  display: block;
  margin-top: 12px;
  font-family: var(--font-num);
  font-size: clamp(13px, 2.6vw, 16px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.page-home .home-hero__sub {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(16px, 3.2vw, 21px);
  line-height: 1.6;
  color: var(--paper);
}

.page-home .home-hero__copy .lead {
  max-width: 46ch;
  color: var(--muted);
}

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

.page-home .home-stats {
  list-style: none;
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}

.page-home .home-stats .stat__num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(20px, 4.6vw, 26px);
  letter-spacing: 0.02em;
  color: var(--orange);
}

.page-home .home-stats .stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 章节索引条 ---------- */
.page-home .home-toc {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(34, 22, 15, 0.55);
}

.page-home .home-toc .home-toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding: 14px 0;
}

.page-home .home-toc .index-list__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.page-home .home-toc .index-list__link:hover,
.page-home .home-toc .index-list__link[aria-current="true"] {
  color: var(--paper);
  border-color: var(--orange);
}

.page-home .home-toc .index-list__num {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--orange);
}

/* ---------- 章节头部 ---------- */
.page-home .chapter {
  display: grid;
  gap: 6px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 18px;
}

.page-home .chapter__num {
  font-family: var(--font-num);
  font-size: clamp(38px, 8vw, 72px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--orange-deep);
  transition: color 0.2s ease;
}

.page-home .chapter.is-current .chapter__num {
  color: var(--lime);
}

.page-home .chapter__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 4.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .chapter__note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 三个入口 ---------- */
.page-home .home-entries-section {
  padding-top: clamp(44px, 7vw, 76px);
}

.page-home .home-band {
  margin: 0 0 26px;
  border: 2px solid var(--line);
  overflow: hidden;
  background: var(--brown);
}

.page-home .home-band img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-band figcaption {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.page-home .home-entries {
  display: grid;
  gap: 20px;
  padding-bottom: 8px;
}

.page-home .home-entry {
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-within {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.55);
}

.page-home .home-entry .card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .home-entry .card__top .mono {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--orange);
}

.page-home .home-entry .card__title {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

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

.page-home .home-entry .card__meta {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-top: 12px;
}

/* ---------- 时间轴 ---------- */
.page-home .home-refresh {
  background: var(--brown);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding-top: clamp(40px, 6vw, 66px);
  padding-bottom: clamp(40px, 6vw, 66px);
}

.page-home .home-timeline {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 26px 0 10px;
  border-top: 2px solid var(--line);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.page-home .home-node {
  position: relative;
  flex: 0 0 clamp(190px, 66vw, 240px);
  padding: 0 20px 0 0;
  scroll-snap-align: start;
  outline-offset: 4px;
}

.page-home .home-node + .home-node {
  padding-left: 20px;
  border-left: 1px dashed var(--line);
}

.page-home .home-node::before {
  content: "";
  position: absolute;
  top: -32px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--ink);
  border: 2px solid var(--orange);
}

.page-home .home-node:first-child::before {
  background: var(--orange);
}

.page-home .home-node__time {
  display: block;
  font-family: var(--font-num);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--orange);
}

.page-home .home-node__title {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
}

.page-home .home-node__note {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  transition: max-height 0.22s ease, opacity 0.22s ease, margin-top 0.22s ease;
}

.page-home .home-node:hover .home-node__note,
.page-home .home-node:focus-within .home-node__note {
  max-height: 90px;
  opacity: 1;
  margin-top: 8px;
}

/* ---------- 内容目录 ---------- */
.page-home .home-catalog {
  position: relative;
  overflow: hidden;
  background: #17100B;
  padding-top: clamp(44px, 7vw, 76px);
  padding-bottom: clamp(44px, 7vw, 76px);
}

.page-home .home-catalog__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

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

.page-home .home-catalog__list {
  display: grid;
  gap: 12px;
}

.page-home .home-cat {
  border: 2px solid var(--line);
  background: rgba(14, 17, 20, 0.74);
  padding: 2px 16px;
  transition: border-color 0.16s ease;
}

.page-home .home-cat:hover,
.page-home .home-cat[open] {
  border-color: var(--orange);
}

.page-home .home-cat .disclose__sum {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(18px, 3.6vw, 22px);
  font-weight: 700;
  color: var(--paper);
  list-style: none;
}

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

.page-home .home-cat .disclose__sum .mono {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 400;
  color: var(--orange);
}

.page-home .home-cat .disclose__sum::after {
  content: "＋";
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--muted);
}

.page-home .home-cat[open] .disclose__sum::after {
  content: "－";
  color: var(--orange);
}

.page-home .home-cat .disclose__body {
  padding: 0 0 16px;
  border-top: 1px dashed var(--line);
}

.page-home .home-cat .disclose__body p {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 双端同源 ---------- */
.page-home .home-dual {
  display: grid;
  gap: 22px;
}

.page-home .home-dual__figure {
  margin: 0;
  border: 2px solid var(--line);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}

.page-home .home-dual__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-sides {
  display: grid;
  gap: 18px;
}

.page-home .home-side {
  border: 2px solid var(--line);
  border-left: 5px solid var(--orange);
  background: var(--panel);
  padding: 20px;
  transition: border-color 0.16s ease;
}

.page-home .home-side--web {
  border-left-color: var(--blue);
}

.page-home .home-side:hover {
  border-color: var(--orange);
}

.page-home .home-side--web:hover {
  border-left-color: var(--blue);
}

.page-home .home-side__label {
  margin: 0 0 6px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-home .home-side--web .home-side__label {
  color: var(--blue);
}

.page-home .home-side__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(18px, 3.6vw, 22px);
  color: var(--paper);
}

.page-home .home-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .home-side__list li {
  position: relative;
  padding-left: 16px;
}

.page-home .home-side__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 2px;
  background: var(--orange-deep);
}

.page-home .home-side--web .home-side__list li::before {
  background: var(--blue);
}

/* ---------- 老读者通道 ---------- */
.page-home .home-readers-section {
  padding-bottom: clamp(44px, 7vw, 76px);
}

.page-home .home-readers {
  border-top: 2px solid var(--orange);
  padding-top: 26px;
}

.page-home .home-readers__list {
  list-style: none;
  counter-reset: home-readers;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-home .home-readers__list li {
  counter-increment: home-readers;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(17px, 3.4vw, 23px);
  line-height: 1.55;
  color: var(--paper);
}

.page-home .home-readers__list li::before {
  content: "0" counter(home-readers);
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--orange);
}

.page-home .home-readers__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- 结尾目录 ---------- */
.page-home .home-next {
  margin-top: clamp(40px, 6vw, 64px);
}

.page-home .home-next__title {
  margin: 0 0 12px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

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

.page-home .home-next__list .index-list__item {
  border-bottom: 1px solid var(--line);
}

.page-home .home-next__list .index-list__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.14s ease, padding-left 0.14s ease;
}

.page-home .home-next__list .index-list__link:hover {
  color: var(--orange);
  padding-left: 8px;
}

.page-home .home-next__list .index-list__num {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--muted);
}

.page-home .home-next__list .index-list__link:hover .index-list__num {
  color: var(--orange);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .home-hero {
    padding-top: 44px;
  }

  .page-home .home-entry .card__text {
    font-size: 16px;
  }

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

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }

  .page-home .home-rail {
    position: sticky;
    top: 96px;
  }

  .page-home .home-entries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    padding-bottom: 76px;
  }

  .page-home .home-entry:nth-child(2) {
    margin-top: 34px;
  }

  .page-home .home-entry:nth-child(3) {
    margin-top: 68px;
  }

  .page-home .home-dual {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 30px;
    align-items: start;
  }

  .page-home .home-timeline {
    overflow: visible;
  }

  .page-home .home-node {
    flex: 1 1 0;
  }

  .page-home .home-node:hover .home-node__note,
  .page-home .home-node:focus-within .home-node__note {
    max-height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition: none !important;
    animation: none !important;
  }
}
