.page-home {
  --home-cut: 18px;
  --home-pad: clamp(22px, 5vw, 56px);
  display: block;
  background: var(--ink);
  color: var(--paper);
  overflow-x: clip;
}

/* ============ 首屏框景 ============ */
.page-home .home-hero {
  position: relative;
  padding-top: clamp(8px, 2vw, 18px);
}

.page-home .home-hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(520px, 88vh, 880px);
  display: flex;
  align-items: flex-end;
}

.page-home .home-hero__frame::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 2vw, 20px);
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 3;
  background-image:
    repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 24px),
    repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 24px);
  background-repeat: no-repeat;
  background-size: 100% 5px, 100% 5px;
  background-position: top left, bottom left;
  opacity: .75;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.42) saturate(.85);
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 46, 41, .28) 0%, rgba(11, 46, 41, .76) 52%, var(--ink) 100%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: clamp(46px, 8vw, 96px) clamp(24px, 5vw, 68px) clamp(30px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
}

.page-home .home-hero .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--neon-soft);
}

.page-home .home-hero__kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--gold);
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(26px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -.01em;
  max-width: 20ch;
  color: var(--paper);
}

.page-home .home-hero__clock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-top: clamp(2px, 1vw, 10px);
}

.page-home .home-hero__time {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(56px, 15vw, 148px);
  line-height: .92;
  letter-spacing: .02em;
  color: var(--orange);
  text-shadow: 0 0 52px rgba(255, 138, 61, .3);
}

.page-home .home-hero__meta {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--neon-soft);
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.72;
  color: var(--paper-70);
}

.page-home .home-hero__cards {
  list-style: none;
  margin: clamp(10px, 2vw, 20px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-home .hero-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 106px;
  padding: 16px 18px 18px;
  background: rgba(11, 46, 41, .72);
  border: 1px solid var(--line);
  color: var(--paper);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}

.page-home .hero-card:hover,
.page-home .hero-card:focus-visible {
  background: rgba(18, 63, 56, .94);
  border-color: var(--neon);
  transform: translateY(-3px);
}

.page-home .hero-card__no {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold);
}

.page-home .hero-card__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.page-home .hero-card__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--paper-70);
}

/* ============ 主体网格 ============ */
.page-home .home-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 4vw, 44px);
  padding-block: clamp(34px, 7vw, 88px);
}

.page-home .chapter-index {
  position: static;
  min-width: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.page-home .chapter-index__title {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gray);
}

.page-home .chapter-index__list {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.page-home .chapter-index__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--paper-70);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.page-home .chapter-index__link .mono {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gold);
}

.page-home .chapter-index__link:hover,
.page-home .chapter-index__link:focus-visible,
.page-home .chapter-index__link[aria-current="true"] {
  color: var(--neon);
  border-left-color: var(--neon);
  background: rgba(56, 242, 200, .08);
}

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

.page-home .home-chapters {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4.5vw, 54px);
  min-width: 0;
}

/* ============ 章节面板 ============ */
.page-home .home-chapter {
  position: relative;
  padding: var(--home-pad);
  background: var(--ink-2);
  color: var(--paper);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, var(--home-cut) 100%, 0 calc(100% - var(--home-cut)));
}

.page-home .home-chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image: radial-gradient(rgba(201, 207, 201, .95) 1px, transparent 1px);
  background-size: 3px 3px;
}

.page-home .home-chapter--deep {
  background: linear-gradient(158deg, var(--ink-2) 0%, var(--ink) 100%);
}

.page-home .home-chapter--wine {
  background: var(--wine);
}

.page-home .home-chapter--indigo {
  background: var(--indigo);
}

.page-home .home-chapter--paper {
  background: var(--paper);
  color: var(--graphite);
}

.page-home .home-chapter > * {
  position: relative;
  z-index: 1;
}

.page-home .home-chapter .chapter-head {
  margin-bottom: clamp(18px, 3vw, 34px);
}

.page-home .home-chapter .chapter-no {
  display: block;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold);
}

.page-home .home-chapter .chapter-kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--neon);
}

.page-home .home-chapter--paper .chapter-kicker {
  color: var(--wine);
}

.page-home .home-chapter .chapter-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1.16;
  letter-spacing: -.01em;
  font-weight: 900;
  max-width: 22ch;
}

.page-home .home-chapter .chapter-lede {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--neon-soft);
}

.page-home .home-chapter--paper .chapter-lede {
  color: #4a534f;
}

.page-home .home-chapter__text {
  margin: 0 0 16px;
  max-width: 62ch;
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.78;
  color: var(--paper-70);
}

.page-home .home-chapter--paper .home-chapter__text,
.page-home .home-chapter--paper .home-list li,
.page-home .home-chapter--paper .ask-card p {
  color: #3d4642;
}

.page-home .home-chapter__text--after {
  margin-top: clamp(16px, 2.6vw, 26px);
}

/* ============ 两栏 ============ */
.page-home .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3.5vw, 40px);
  align-items: center;
}

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

/* ============ 列表 ============ */
.page-home .home-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--paper-70);
}

.page-home .home-list .mono {
  padding-top: 2px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold);
}

/* ============ 图片 ============ */
.page-home .media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.page-home .media__caption {
  margin: 0;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--paper-70);
  background: rgba(11, 46, 41, .86);
}

.page-home .home-chapter--paper .media {
  border-color: var(--line-ink);
}

.page-home .home-chapter--paper .media__caption {
  background: rgba(11, 46, 41, .07);
  color: #3d4642;
}

/* ============ 时间轴 ============ */
.page-home .home-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  position: relative;
  display: grid;
  gap: 12px;
}

.page-home .home-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--neon) 0%, rgba(56, 242, 200, .08) 100%);
}

.page-home .home-timeline__item {
  position: relative;
  padding: 14px 16px;
  background: rgba(11, 46, 41, .6);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.page-home .home-timeline__item::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(56, 242, 200, .16);
}

.page-home .home-timeline__time {
  margin: 0 0 6px;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--orange);
}

.page-home .home-timeline__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--paper-70);
}

/* ============ 横滑轨道 ============ */
.page-home .rail {
  position: relative;
  margin-top: clamp(16px, 2.6vw, 26px);
}

.page-home .rail__track {
  display: flex;
  gap: 12px;
  padding: 4px 2px 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

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

.page-home .rail__item {
  flex: 0 0 min(78vw, 272px);
  scroll-snap-align: start;
  min-width: 0;
}

.page-home .rail-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
  padding: 18px 16px;
  background: rgba(11, 46, 41, .78);
  border: 1px solid var(--line);
  color: var(--paper);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.page-home .rail__track[data-dragging] .rail-card {
  border-color: var(--neon);
}

.page-home .rail-card:hover {
  background: rgba(18, 63, 56, .95);
}

.page-home .rail-card__no {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--gold);
}

.page-home .rail-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
}

.page-home .rail-card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--paper-70);
}

.page-home .rail__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* ============ 三步 ============ */
.page-home .step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .step {
  position: relative;
  padding: 22px 20px 20px;
  background: rgba(11, 46, 41, .58);
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.page-home .step__no {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--orange);
}

.page-home .step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .step p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--paper-70);
}

/* ============ 询问卡片 ============ */
.page-home .ask-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-home .ask-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: #FCFBF7;
  border: 1px solid var(--line-ink);
  color: var(--graphite);
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.page-home .ask-card:hover,
.page-home .ask-card:focus-visible {
  border-color: var(--ink-2);
  transform: translateY(-3px);
}

.page-home .ask-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-2);
}

.page-home .ask-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
}

.page-home .ask-card__go {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--wine);
}

/* ============ 按钮区距 ============ */
.page-home .home-chapter .btn {
  display: inline-block;
}

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

  .page-home .step-list {
    gap: 16px;
  }
}

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

@media (min-width: 860px) {
  .page-home .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }

  .page-home .split--flip > :first-child {
    order: 2;
  }
}

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

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

@media (min-width: 1080px) {
  .page-home .home-body {
    grid-template-columns: 172px minmax(0, 1fr);
    align-items: start;
  }

  .page-home .chapter-index {
    position: sticky;
    top: 92px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .page-home .chapter-index__list {
    flex-direction: column;
    gap: 2px;
    padding-bottom: 0;
    overflow: visible;
  }

  .page-home .chapter-index__link {
    justify-content: flex-start;
  }
}

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

  .page-home .hero-card:hover,
  .page-home .hero-card:focus-visible,
  .page-home .ask-card:hover,
  .page-home .ask-card:focus-visible {
    transform: none;
  }
}
</main>
