.page-home {
  --home-pad: clamp(46px, 7vw, 96px);
  --home-slant: clamp(22px, 3.6vw, 44px);
  --home-hair: rgba(26, 37, 48, .16);
  --home-hair-dark: rgba(240, 230, 210, .16);
  --home-soft: rgba(240, 230, 210, .78);
  display: block;
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home p,
.page-home ul,
.page-home ol,
.page-home li,
.page-home figure {
  margin: 0;
  padding: 0;
}

.page-home ul,
.page-home ol {
  list-style: none;
}

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

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.page-home h2 {
  font-size: clamp(26px, 3.4vw, 42px);
}

.page-home h3 {
  font-size: clamp(17px, 1.9vw, 21px);
}

.page-home .home-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.page-home .home-label--dark {
  color: var(--cyan);
}

.page-home .section-lede {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--gray);
  max-width: 56ch;
  margin-top: 14px;
}

.page-home .section-lede--dark {
  color: var(--home-soft);
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow-x: clip;
  padding: clamp(36px, 5vw, 68px) 0 clamp(52px, 8vw, 104px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 230, 210, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 230, 210, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    var(--accent) 0,
    var(--accent) 84px,
    rgba(240, 230, 210, .26) 84px,
    rgba(240, 230, 210, .26) 100%);
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 5vw, 56px);
}

.page-home .hero-copy .crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: clamp(18px, 3vw, 30px);
}

.page-home .hero-copy .crumbs span {
  color: rgba(240, 230, 210, .4);
  margin: 0 .55em;
}

.page-home .hero-copy h1 {
  font-size: clamp(38px, 6.2vw, 76px);
  color: var(--cream);
  margin-bottom: clamp(16px, 2.2vw, 24px);
}

.page-home .hero-lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.9;
  color: var(--home-soft);
  max-width: 44ch;
}

.page-home .hero-index {
  margin-top: clamp(24px, 3.2vw, 38px);
  border-top: 1px solid var(--home-hair-dark);
}

.page-home .hero-index li {
  border-bottom: 1px solid var(--home-hair-dark);
}

.page-home .hero-index a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 2px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--paper);
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.page-home .hero-index a:hover,
.page-home .hero-index a:focus-visible {
  color: var(--cyan);
  padding-left: 10px;
}

.page-home .hero-index .num {
  color: var(--accent);
  font-size: 13px;
}

/* 对照面板 */

.page-home .hero-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}

.page-home .cmp-panel {
  background: var(--ink-2);
  padding: clamp(16px, 2vw, 22px);
  clip-path: var(--cut-lg);
  border-top: 3px solid var(--cyan);
}

.page-home .cmp-panel--mob {
  background: var(--ink-3);
  border-top-color: var(--accent);
}

.page-home .cmp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.page-home .cmp-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper-2);
}

.page-home .cmp-panel--mob .cmp-kicker {
  color: var(--paper-2);
}

.page-home .cmp-panel .tag {
  font-size: 11px;
  letter-spacing: .06em;
}

.page-home .cmp-figure {
  background: #07101B;
  overflow: hidden;
  margin-bottom: 14px;
}

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

.page-home .cmp-panel--desk .cmp-figure {
  aspect-ratio: 3 / 2;
}

.page-home .cmp-panel--mob .cmp-figure {
  aspect-ratio: 9 / 16;
  max-width: 208px;
  margin-inline: auto;
}

.page-home .cmp-note {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.78;
  color: rgba(240, 230, 210, .8);
}

/* ---------- 三个固定入口 ---------- */

.page-home .home-entrances {
  position: relative;
  background: var(--paper);
  color: var(--text);
  padding: calc(var(--home-pad) + var(--home-slant)) 0 var(--home-pad);
}

.page-home .home-entrances::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--home-slant);
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.page-home .entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(26px, 3.4vw, 40px);
}

.page-home .entry-list {
  border-top: 1px solid var(--home-hair);
}

.page-home .entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num name"
    "num desc";
  gap: 4px 18px;
  padding: clamp(16px, 2.2vw, 22px) 8px;
  border-bottom: 1px solid var(--home-hair);
  transition: background .2s var(--ease);
}

.page-home .entry:hover {
  background: var(--paper-3);
}

.page-home .entry-num {
  grid-area: num;
  font-size: 15px;
  color: var(--gray);
  transition: transform .2s var(--ease), color .2s var(--ease);
}

.page-home .entry:hover .entry-num {
  color: var(--cyan-2);
  transform: translateX(2px);
}

.page-home .entry-name {
  grid-area: name;
}

.page-home .entry-desc {
  grid-area: desc;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}

.page-home .entry-figure {
  background: var(--paper-2);
  padding: 16px;
  clip-path: var(--cut-sm);
}

.page-home .entry-figure img {
  display: block;
  width: 100%;
}

/* 版本落点对照 */

.page-home .entry-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: clamp(30px, 4.5vw, 52px);
}

.page-home .entry-detail-copy h3 {
  margin-bottom: 10px;
}

.page-home .entry-detail-copy p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
}

.page-home .entry-panel {
  background: var(--paper-2);
  padding: clamp(18px, 2.4vw, 26px);
  clip-path: var(--cut-sm);
  border-left: 3px solid var(--cyan-2);
}

.page-home .entry-panel-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.page-home .entry-panel ul {
  display: grid;
  gap: 12px;
}

.page-home .entry-panel li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .entry-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ---------- 三步开始 ---------- */

.page-home .home-start {
  position: relative;
  background: var(--ink-2);
  color: var(--paper);
  padding: var(--home-pad) 0;
  overflow-x: clip;
}

.page-home .home-start::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(205deg, rgba(31, 224, 196, .09), transparent 62%);
  pointer-events: none;
}

.page-home .home-start .wrap {
  position: relative;
}

.page-home .start-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.8vw, 32px);
  margin-top: clamp(28px, 3.6vw, 44px);
}

.page-home .start-step {
  position: relative;
  padding-left: 26px;
  border-left: 1px solid rgba(240, 230, 210, .22);
}

.page-home .start-step::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 11px;
  height: 11px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .start-num {
  display: block;
  font-size: 14px;
  color: var(--cyan);
  margin-bottom: 10px;
}

.page-home .start-step h3 {
  color: var(--cream);
  margin-bottom: 8px;
}

.page-home .start-step p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.78;
  color: var(--home-soft);
}

.page-home .start-figure {
  margin-top: clamp(28px, 4vw, 46px);
}

.page-home .start-figure img {
  display: block;
  width: 100%;
  border: 1px solid rgba(240, 230, 210, .16);
}

.page-home .start-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

/* ---------- 最近更新 ---------- */

.page-home .home-updates {
  background: var(--paper);
  color: var(--text);
  padding: var(--home-pad) 0;
}

.page-home .updates-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.page-home .update-list {
  border-top: 1px solid var(--home-hair);
}

.page-home .update-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: clamp(16px, 2.2vw, 22px) 6px;
  border-bottom: 1px solid var(--home-hair);
  transition: background .2s var(--ease);
}

.page-home .update-row:hover {
  background: var(--paper-3);
}

.page-home .update-row .tag {
  justify-self: start;
  font-size: 11px;
  letter-spacing: .06em;
}

.page-home .update-row h3 {
  font-size: clamp(16px, 1.8vw, 19px);
}

.page-home .update-row p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}

.page-home .update-time {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: .06em;
}

/* ---------- 帮助中心入口 ---------- */

.page-home .home-help {
  background: var(--paper-2);
  color: var(--text);
  padding: var(--home-pad) 0;
}

.page-home .help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
}

.page-home .help-copy p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray);
  margin: 14px 0 22px;
}

.page-home .help-list {
  border-top: 1px solid rgba(26, 37, 48, .22);
}

.page-home .help-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num name"
    "num desc";
  gap: 4px 16px;
  padding: clamp(16px, 2.2vw, 22px) 6px;
  border-bottom: 1px solid rgba(26, 37, 48, .22);
}

.page-home .help-num {
  grid-area: num;
  font-size: 14px;
  color: var(--accent);
}

.page-home .help-item h3 {
  grid-area: name;
}

.page-home .help-item p {
  grid-area: desc;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}

/* ---------- 合作 ---------- */

.page-home .home-coop {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: var(--home-pad) 0;
  overflow-x: clip;
}

.page-home .home-coop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(214, 58, 47, .14) 0 2px, transparent 2px 24px);
  pointer-events: none;
}

.page-home .coop-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.page-home .coop-copy h2 {
  color: var(--cream);
  margin-bottom: 14px;
}

.page-home .coop-copy p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--home-soft);
  max-width: 46ch;
}

.page-home .coop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 断点 ---------- */

@media (min-width: 640px) {
  .page-home .hero-compare {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
    align-items: start;
  }

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

@media (min-width: 720px) {
  .page-home .update-row {
    grid-template-columns: 132px minmax(0, 1fr) 92px;
    grid-template-areas:
      "tag title time"
      "tag desc time";
    gap: 4px 22px;
    align-items: start;
  }

  .page-home .update-row .tag {
    grid-area: tag;
    margin-top: 3px;
  }

  .page-home .update-row h3 {
    grid-area: title;
  }

  .page-home .update-row p {
    grid-area: desc;
  }

  .page-home .update-time {
    grid-area: time;
    justify-self: end;
    margin-top: 4px;
  }
}

@media (min-width: 780px) {
  .page-home .entry-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 24px 40px;
    align-items: start;
  }

  .page-home .entry-detail-copy {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .page-home .entry-panel {
    grid-column: 2;
  }
}

@media (min-width: 860px) {
  .page-home .coop-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: 32px;
  }

  .page-home .coop-actions {
    justify-content: flex-end;
  }
}

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

  .page-home .help-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
    gap: clamp(32px, 4vw, 64px);
  }

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

@media (min-width: 1100px) {
  .page-home .hero-compare {
    margin-right: clamp(-70px, -4.5vw, -28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-index a,
  .page-home .entry,
  .page-home .entry-num,
  .page-home .update-row {
    transition: none;
  }

  .page-home .entry:hover .entry-num {
    transform: none;
  }
}
