.page-home {
  --home-cut: 14px;
  --home-pad: clamp(52px, 7vw, 96px);
  --home-gap: clamp(18px, 2.6vw, 32px);
  background: var(--paper);
  color: var(--ink-900);
  overflow-x: clip;
}

/* ---------- 通用排版 ---------- */
.page-home .home-block {
  padding: var(--home-pad) 0;
  position: relative;
}
.page-home .home-block--mist {
  background: var(--mist-050);
  border-top: 1px solid var(--mist-200);
  border-bottom: 1px solid var(--mist-200);
}
.page-home .home-block--ink {
  background: var(--ink-900);
  color: var(--mist-050);
}
.page-home .home-block--ink .sec-title,
.page-home .home-block--ink .home-head__lede {
  color: var(--paper);
}

/* ---------- 封面 ---------- */
.page-home .cover {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4.5vw, 60px) 0 clamp(48px, 6.5vw, 92px);
  background:
    radial-gradient(120% 82% at 92% -8%, rgba(242, 160, 61, .20), rgba(242, 160, 61, 0) 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist-050) 100%);
  border-bottom: 1px solid var(--mist-200);
}
.page-home .cover::before {
  content: "";
  position: absolute;
  top: 0; right: -14%;
  width: 58%;
  height: 100%;
  background: linear-gradient(180deg, rgba(14, 27, 46, .045), rgba(14, 27, 46, 0));
  transform: skewX(-16deg);
  pointer-events: none;
}
.page-home .cover > .wrap { position: relative; z-index: 1; }

.page-home .cover__crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist-500);
  margin-bottom: clamp(22px, 3vw, 40px);
}
.page-home .cover__crumbs .crumbs__sep { color: var(--mist-200); }

.page-home .cover__grid {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
}

.page-home .cover__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(64px, 15vw, 120px);
  line-height: .8;
  letter-spacing: -.05em;
  color: var(--amber-500);
}
.page-home .cover__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 6.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 18px 0 0;
  color: var(--ink-900);
}
.page-home .cover__title em {
  font-style: normal;
  color: var(--ink-700);
  background: linear-gradient(transparent 68%, var(--amber-200) 68%);
  padding-bottom: 2px;
}
.page-home .cover__lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.85;
  color: var(--ink-700);
  max-width: 34em;
}
.page-home .cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.page-home .cover__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(30px, 4vw, 46px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--mist-200);
}
.page-home .cover__stat dt {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist-500);
  margin-bottom: 6px;
}
.page-home .cover__stat dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -.01em;
  color: var(--ink-900);
}

.page-home .cover__index {
  background: var(--paper);
  border: 1px solid var(--mist-200);
  box-shadow: var(--shadow-1);
  padding: clamp(20px, 2.4vw, 28px);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%, 0 var(--home-cut));
}
.page-home .cover__index .eyebrow { margin-bottom: 14px; }
.page-home .cover__index-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.page-home .cover__index-list li { border-bottom: 1px dashed var(--mist-200); }
.page-home .cover__index-list li:last-child { border-bottom: 0; }
.page-home .cover__index-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 4px;
  color: var(--ink-900);
  text-decoration: none;
  font-size: 16px;
  transition: padding-left .18s ease, color .18s ease, background .18s ease;
}
.page-home .cover__index-list a .mono {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--amber-500);
  flex: none;
}
.page-home .cover__index-list a:hover {
  color: var(--ink-500);
  background: var(--mist-050);
  padding-left: 12px;
}
.page-home .cover__figure { margin: 0; }

/* ---------- 章节导航条 ---------- */
.page-home .home-rail {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--ink-900);
  border-bottom: 1px solid rgba(252, 251, 248, .14);
}
.page-home .home-rail__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-home .home-rail__inner::-webkit-scrollbar { display: none; }
.page-home .home-rail__label {
  flex: none;
  color: var(--amber-500);
  font-size: 12px;
  letter-spacing: .16em;
}
.page-home .home-rail__list {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-home .home-rail__list a {
  display: block;
  padding: 7px 12px;
  white-space: nowrap;
  font-size: 14px;
  text-decoration: none;
  color: rgba(252, 251, 248, .7);
  transition: color .18s ease, background .18s ease;
}
.page-home .home-rail__list a:hover {
  color: var(--paper);
  background: rgba(242, 160, 61, .18);
}
.page-home .home-rail__list a[data-active] {
  background: var(--amber-500);
  color: var(--ink-900);
  font-weight: 700;
}

/* ---------- 章节头 ---------- */
.page-home .home-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 36px);
  align-items: start;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.page-home .home-head .num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(46px, 7vw, 84px);
  line-height: .86;
  letter-spacing: -.05em;
  color: var(--mist-200);
}
.page-home .home-block--ink .home-head .num { color: var(--ink-700); }
.page-home .home-head .eyebrow { margin-bottom: 10px; }
.page-home .home-head .sec-title {
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0;
}
.page-home .home-head__lede {
  margin: 14px 0 0;
  max-width: 46em;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-700);
}
.page-home .home-head--art { grid-template-columns: auto minmax(0, 1fr); }
.page-home .home-head__art {
  margin: 0;
  width: clamp(88px, 14vw, 150px);
  grid-column: 2;
}
.page-home .home-head--stack { grid-template-columns: auto minmax(0, 1fr); }

/* ---------- 两个主入口 ---------- */
.page-home .entry-grid {
  display: grid;
  gap: var(--home-gap);
}
.page-home .entry-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--paper);
  border: 1px solid var(--mist-200);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%, 0 var(--home-cut));
  transition: transform .22s ease, box-shadow .22s ease;
}
.page-home .entry-panel__num {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--amber-500);
}
.page-home .entry-panel__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -.01em;
  margin: 0;
}
.page-home .entry-panel p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-700);
}
.page-home .entry-panel__scene {
  font-size: 15px !important;
  color: var(--mist-500) !important;
  border-left: 3px solid var(--amber-200);
  padding-left: 12px;
}
.page-home .entry-panel .btn { align-self: flex-start; margin-top: 4px; }
.page-home .entry-panel--paper { border-top: 4px solid var(--amber-500); }
.page-home .entry-panel--ink {
  background: var(--ink-900);
  border-color: var(--ink-700);
  border-top: 4px solid var(--amber-500);
}
.page-home .entry-panel--ink .entry-panel__title { color: var(--paper); }
.page-home .entry-panel--ink p { color: rgba(252, 251, 248, .8); }
.page-home .entry-panel--ink .entry-panel__scene {
  color: rgba(252, 251, 248, .6) !important;
  border-left-color: var(--amber-500);
}
.page-home .entry-panel--ink .btn--primary { color: var(--ink-900); }

/* ---------- 两条主线 ---------- */
.page-home .home-split {
  display: grid;
  gap: clamp(26px, 3.4vw, 44px);
}
.page-home .home-split .media { margin: 0 0 clamp(22px, 3vw, 34px); }
.page-home .track-grid {
  display: grid;
  gap: var(--home-gap);
}
.page-home .track {
  background: var(--paper);
  border: 1px solid var(--mist-200);
  border-left: 4px solid var(--ink-500);
  padding: clamp(20px, 2.4vw, 30px);
}
.page-home .track__no {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--amber-500);
  margin: 0 0 10px;
}
.page-home .track__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(19px, 2vw, 23px);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.page-home .track p {
  margin: 0 0 12px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-700);
}
.page-home .track__meta {
  font-size: 14px !important;
  color: var(--mist-500) !important;
  padding-top: 12px;
  border-top: 1px solid var(--mist-200);
  margin-bottom: 0 !important;
}
.page-home .home-split__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.page-home .note-card {
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--paper);
  border: 1px solid var(--mist-200);
  border-top: 4px solid var(--amber-500);
  width: 100%;
}
.page-home .note-card .eyebrow { margin-bottom: 14px; }
.page-home .note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-home .note-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-700);
}
.page-home .note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 10px;
  height: 3px;
  background: var(--amber-500);
}
.page-home .note-list strong { color: var(--ink-900); }
.page-home .home-split__meta {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist-500);
  margin: 0;
}

/* ---------- 版本节奏 ---------- */
.page-home .rhythm-grid {
  display: grid;
  gap: clamp(26px, 3.4vw, 44px);
}
.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--ink-700);
}
.page-home .timeline__item {
  position: relative;
  padding: 0 0 28px 0;
}
.page-home .timeline__item:last-child { padding-bottom: 0; }
.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: .5em;
  width: 12px;
  height: 12px;
  background: var(--amber-500);
  transform: rotate(45deg);
}
.page-home .timeline__ver {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--amber-500);
  margin-bottom: 8px;
}
.page-home .timeline__item h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(17px, 1.9vw, 21px);
  margin: 0 0 8px;
  color: var(--paper);
}
.page-home .timeline__item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(252, 251, 248, .74);
}
.page-home .rhythm-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.page-home .rhythm-side .media { margin: 0; }
.page-home .rhythm-card {
  background: var(--ink-700);
  border-left: 4px solid var(--amber-500);
  padding: clamp(18px, 2.2vw, 26px);
}
.page-home .rhythm-card .mono {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--amber-500);
  margin: 0 0 12px;
}
.page-home .rhythm-card p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(252, 251, 248, .82);
}
.page-home .rhythm-card .btn--primary { color: var(--ink-900); }

/* ---------- 谁在用 ---------- */
.page-home .who-grid {
  display: grid;
  gap: var(--home-gap);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.page-home .who-card {
  border-top: 3px solid var(--ink-900);
  padding: 20px 0 0;
}
.page-home .who-card__no {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--amber-500);
  margin: 0 0 10px;
}
.page-home .who-card h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(17px, 1.9vw, 20px);
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.page-home .who-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-700);
}

.page-home .who-stats {
  list-style: none;
  margin: 0;
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid var(--mist-200);
  border-bottom: 1px solid var(--mist-200);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 32px);
}
.page-home .who-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-home .who-stat__num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink-900);
}
.page-home .who-stat__num em {
  font-style: normal;
  font-size: .5em;
  color: var(--amber-500);
  margin-left: 2px;
}
.page-home .who-stat__label {
  font-size: 14px;
  color: var(--mist-500);
  line-height: 1.6;
}
.page-home .who-note {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-700);
  max-width: 62em;
}

/* ---------- 最近上架 ---------- */
.page-home .latest-grid {
  display: grid;
  gap: clamp(26px, 3.4vw, 44px);
}
.page-home .latest-col__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--mist-500);
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink-900);
}
.page-home .latest-list,
.page-home .hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-home .latest-item {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mist-200);
}
.page-home .latest-item a {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-900);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color .18s ease, color .18s ease;
  justify-self: start;
}
.page-home .latest-item a:hover {
  color: var(--ink-700);
  border-bottom-color: var(--amber-500);
}
.page-home .shared-meta {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist-500);
}
.page-home .hot-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--mist-200);
}
.page-home .hot-item__rank {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--amber-500);
  flex: none;
}
.page-home .hot-item a {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-900);
  text-decoration: none;
  transition: color .18s ease;
}
.page-home .hot-item a:hover { color: var(--ink-500); }

/* ---------- 常见问题 + 下一步 ---------- */
.page-home .faq-list {
  border-top: 2px solid var(--ink-900);
}
.page-home .faq-item {
  border-bottom: 1px solid var(--mist-200);
}
.page-home .faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
}
.page-home .faq-item summary::-webkit-details-marker { display: none; }
.page-home .faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--amber-500);
  transition: transform .2s ease;
}
.page-home .faq-item[open] summary::after {
  content: "–";
  transform: translateY(-1px);
}
.page-home .faq-item__body {
  padding: 0 0 20px;
  max-width: 42em;
}
.page-home .faq-item__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-700);
}

.page-home .home-next {
  margin-top: clamp(34px, 4.4vw, 56px);
  padding: clamp(24px, 3vw, 38px);
  background: var(--mist-050);
  border: 1px solid var(--mist-200);
  border-left: 4px solid var(--amber-500);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
  display: grid;
  gap: 20px;
}
.page-home .home-next__text .eyebrow { margin-bottom: 8px; }
.page-home .home-next__text h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.page-home .home-next__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-700);
  max-width: 40em;
}
.page-home .home-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-home .home-next__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 18px;
  border-top: 1px solid var(--mist-200);
}
.page-home .home-next__val {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mist-500);
  word-break: break-all;
}
.page-home .copy-btn {
  appearance: none;
  border: 1px solid var(--mist-200);
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.page-home .copy-btn:hover {
  background: var(--amber-200);
  border-color: var(--amber-500);
  color: var(--ink-900);
}
.page-home .copy-btn[data-copied] {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

/* ---------- 滚动进场 ---------- */
.page-home [data-reveal] { opacity: 1; transform: none; }
.js .page-home [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
}
.js .page-home [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-home .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .who-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-home .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .cover__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: start;
  }
  .page-home .cover__main { padding-right: clamp(10px, 2vw, 30px); }
  .page-home .home-head {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  }
  .page-home .home-head--art {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) clamp(88px, 12vw, 150px);
    align-items: center;
  }
  .page-home .home-head--art .home-head__art {
    grid-column: 3;
    width: 100%;
  }
  .page-home .home-split {
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    align-items: start;
  }
  .page-home .rhythm-grid {
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    align-items: start;
  }
  .page-home .latest-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
  }
  .page-home .home-next {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }
  .page-home .home-next__text { grid-column: 1; }
  .page-home .home-next__actions { grid-column: 2; justify-content: flex-start; }
  .page-home .home-next__contact { grid-column: 1 / -1; }
}

@media (hover: hover) and (min-width: 900px) {
  .page-home .entry-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-1);
  }
}

@media (max-width: 380px) {
  .page-home .cover__stats { grid-template-columns: 1fr; }
  .page-home .home-head { grid-template-columns: 1fr; }
  .page-home .home-head__art { grid-column: 1; width: 60%; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .page-home [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
</main>
