.page-home{
  --hm-tick: rgba(53,242,208,.42);
  --hm-accent-soft: rgba(53,242,208,.12);
  position: relative;
  overflow-x: clip;
  color: var(--pg-ink);
}

.page-home .pg-section{
  padding-block: 52px;
}

.page-home .pg-section__head{
  max-width: 62ch;
}

.page-home .pg-section__head .pg-lead{
  margin-top: 10px;
}

/* ---------- 章节过渡细线 ---------- */
.page-home .hm-seam{
  height: 10px;
  margin-inline: var(--pg-gutter);
  max-width: var(--pg-maxw);
  background-image: repeating-linear-gradient(90deg, var(--pg-line) 0 1px, transparent 1px 18px);
  background-size: auto 2px;
  background-position: 0 bottom;
  background-repeat: repeat-x;
  opacity: .55;
}

@media (min-width: 720px){
  .page-home .hm-seam{
    margin-inline: auto;
    padding-inline: var(--pg-gutter);
    box-sizing: content-box;
  }
}

/* ---------- 首屏 ---------- */
.page-home .hm-hero{
  padding-block: 26px 44px;
}

.page-home .hm-hero__frame{
  position: relative;
  overflow: hidden;
  padding: 40px 20px 30px;
  border: 1px solid var(--pg-line-soft);
  border-radius: var(--pg-radius);
  background:
    radial-gradient(130% 80% at 50% 0%, var(--hm-accent-soft), transparent 62%),
    radial-gradient(90% 60% at 85% 100%, rgba(139,92,246,.14), transparent 70%),
    linear-gradient(180deg, var(--pg-deep) 0%, #08182b 58%, var(--pg-abyss) 100%);
  box-shadow: var(--pg-shadow);
}

.page-home .hm-hero__ring{
  position: absolute;
  top: -34%;
  left: 50%;
  width: min(520px, 128%);
  aspect-ratio: 1 / 1;
  translate: -50% 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--hm-tick) 0 .5deg, transparent .5deg 5deg);
  -webkit-mask: radial-gradient(circle, transparent 59%, #000 59.4%, #000 68%, transparent 68.4%);
  mask: radial-gradient(circle, transparent 59%, #000 59.4%, #000 68%, transparent 68.4%);
  opacity: .5;
  pointer-events: none;
  animation: hm-spin 96s linear infinite;
}

@keyframes hm-spin{
  to{ rotate: 360deg; }
}

.page-home .hm-hero__body{
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-home .hm-hero__kicker{
  letter-spacing: .1em;
}

.page-home .hm-hero__dial{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 10px 0 2px;
  transition: transform var(--pg-speed) var(--pg-ease);
}

.page-home .hm-hero__dial:hover{
  transform: scale(1.045);
}

.page-home .hm-hero__num{
  font-family: var(--pg-font-mono);
  font-weight: 700;
  font-size: clamp(104px, 32vw, 232px);
  line-height: .84;
  letter-spacing: -.04em;
  color: var(--pg-bright);
  text-shadow:
    0 0 26px rgba(53,242,208,.55),
    0 0 72px rgba(139,92,246,.4);
}

.page-home .hm-hero__unit{
  font-family: var(--pg-font-mono);
  font-size: clamp(20px, 5vw, 34px);
  color: var(--pg-cyan);
  letter-spacing: .06em;
}

.page-home .hm-hero__title{
  margin: 12px auto 0;
  max-width: 20ch;
  font-size: clamp(23px, 6vw, 40px);
  line-height: 1.35;
  color: var(--pg-bright);
}

.page-home .hm-hero__lead{
  margin: 16px auto 0;
  max-width: 46ch;
}

.page-home .hm-hero__cta{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.page-home .hm-hero__media{
  position: relative;
  z-index: 1;
  margin: 30px 0 0;
  border: 1px solid var(--pg-line-soft);
  border-radius: 12px;
  overflow: hidden;
  rotate: -1.1deg;
  background: var(--pg-deep);
}

.page-home .hm-hero__media img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: .86;
}

/* ---------- 本月预告时间轴 ---------- */
.page-home .hm-timeline{
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: hm-step;
}

.page-home .hm-timeline__item{
  position: relative;
  counter-increment: hm-step;
  padding: 22px 18px 20px;
  border: 1px solid var(--pg-line-soft);
  border-radius: 12px;
  background: linear-gradient(158deg, rgba(11,31,56,.92), rgba(7,20,38,.6));
}

.page-home .hm-timeline__item::before{
  content: "0" counter(hm-step);
  position: absolute;
  top: -12px;
  left: 16px;
  padding: 2px 8px;
  font-family: var(--pg-font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--pg-abyss);
  background: var(--pg-cyan);
  border-radius: 4px;
}

.page-home .hm-timeline__item--fit::before{
  background: var(--pg-violet);
  color: var(--pg-bright);
}

.page-home .hm-timeline__item--new::before{
  background: var(--pg-orange);
  color: #241000;
}

.page-home .hm-timeline__item--entry{
  background: linear-gradient(158deg, rgba(53,242,208,.09), rgba(7,20,38,.72));
}

.page-home .hm-timeline__title{
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--pg-bright);
}

.page-home .hm-timeline__item p{
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- 三条通道 ---------- */
.page-home .hm-gates{
  margin-top: 30px;
}

.page-home .hm-gate{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px 20px;
  border: 1px solid var(--pg-line-soft);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(14,40,70,.94), rgba(7,20,38,.72));
  text-decoration: none;
  color: inherit;
  rotate: -1deg;
  transition:
    rotate var(--pg-speed) var(--pg-ease),
    translate var(--pg-speed) var(--pg-ease),
    border-color var(--pg-speed) var(--pg-ease);
}

.page-home .hm-gate:nth-child(2){
  rotate: 1.2deg;
}

.page-home .hm-gate:nth-child(3){
  rotate: -.5deg;
}

.page-home .hm-gate:hover,
.page-home .hm-gate:focus-visible{
  rotate: 0deg;
  translate: 0 -4px;
  border-color: var(--pg-cyan);
}

.page-home .hm-gate__title{
  margin: 0;
  font-size: 21px;
  color: var(--pg-bright);
  letter-spacing: .03em;
}

.page-home .hm-gate__text{
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.page-home .hm-gate__go{
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--pg-font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--pg-cyan);
}

/* ---------- 苹果版入口 ---------- */
.page-home .hm-apple{
  display: grid;
  gap: 26px;
}

.page-home .hm-apple__lead{
  margin: 14px 0 0;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.8;
}

.page-home .hm-apple__steps{
  margin: 22px 0 0;
}

.page-home .hm-apple__copy{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.page-home .hm-apple__copy .pg-code{
  flex: 1 1 220px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-home .hm-apple__note{
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pg-violet-soft);
}

.page-home .hm-apple__note a{
  color: var(--pg-cyan);
  text-underline-offset: 3px;
}

.page-home .hm-apple__media{
  position: relative;
  margin: 0;
  border: 1px solid var(--pg-line-soft);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(53,242,208,.07), transparent 55%),
    var(--pg-deep);
  rotate: 1deg;
}

.page-home .hm-apple__media img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  opacity: .92;
}

.page-home .hm-apple__media .pg-media__cap{
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 3px 9px;
  font-family: var(--pg-font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--pg-abyss);
  background: var(--pg-cyan);
  border-radius: 4px;
}

/* ---------- 更新日志走廊 ---------- */
.page-home .hm-logbanner{
  margin: 26px 0 0;
  border: 1px solid var(--pg-line-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--pg-deep);
}

.page-home .hm-logbanner img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  opacity: .8;
}

.page-home .hm-filters{
  margin-top: 24px;
}

.page-home .pg-filter__btn{
  font-family: var(--pg-font-mono);
  letter-spacing: .04em;
}

.page-home .hm-log{
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .hm-log__item{
  display: grid;
  gap: 8px;
  padding: 18px 18px 16px;
  border-left: 2px solid var(--pg-line);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(11,31,56,.78), rgba(7,20,38,.22));
}

.page-home .hm-log__item[hidden]{
  display: none;
}

.page-home .hm-log__item--entry{
  border-left-color: var(--pg-cyan);
}

.page-home .hm-log__item--fit{
  border-left-color: var(--pg-violet);
}

.page-home .hm-log__item--new{
  border-left-color: var(--pg-orange);
}

.page-home .hm-log__item .pg-chip{
  justify-self: start;
}

.page-home .hm-log__title{
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--pg-bright);
}

.page-home .hm-log__item p{
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
}

/* ---------- 收藏与下一期 ---------- */
.page-home .hm-next__panel{
  display: grid;
  gap: 24px;
  padding: 28px 20px;
  border: 1px solid var(--pg-line-soft);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(139,92,246,.16), transparent 62%),
    radial-gradient(90% 70% at 0% 100%, rgba(53,242,208,.1), transparent 66%),
    linear-gradient(150deg, rgba(11,31,56,.95), rgba(7,20,38,.86));
}

.page-home .hm-next__lead{
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.8;
}

.page-home .hm-next__list{
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .hm-next__list li{
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.7;
}

.page-home .hm-next__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 2px;
  background: var(--pg-cyan);
}

.page-home .hm-next__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hm-next__media{
  margin: 0;
  border: 1px solid var(--pg-line-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--pg-deep);
  rotate: -.9deg;
}

.page-home .hm-next__media img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  opacity: .84;
}

.page-home .hm-next__media .pg-media__cap{
  display: block;
  padding: 8px 12px;
  font-family: var(--pg-font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--pg-ink);
  background: rgba(7,20,38,.9);
}

/* ---------- 平板 ---------- */
@media (min-width: 720px){
  .page-home .pg-section{
    padding-block: 74px;
  }

  .page-home .hm-hero{
    padding-block: 40px 60px;
  }

  .page-home .hm-hero__frame{
    padding: 56px 48px 42px;
  }

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

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

/* ---------- 桌面 ---------- */
@media (min-width: 960px){
  .page-home .hm-hero__frame{
    padding: 68px 64px 56px;
  }

  .page-home .hm-hero__media{
    margin-top: 40px;
    max-width: 880px;
    margin-inline: auto;
  }

  .page-home .hm-apple{
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 52px;
    align-items: center;
  }

  .page-home .hm-apple__media{
    justify-self: end;
    width: min(100%, 380px);
  }

  .page-home .hm-next__panel{
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 48px;
    padding: 48px 44px;
    align-items: center;
  }

  .page-home .hm-next__media{
    justify-self: end;
    width: 100%;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce){
  .page-home .hm-hero__ring{
    animation: none;
  }

  .page-home .hm-hero__dial,
  .page-home .hm-gate,
  .page-home .hm-hero__media,
  .page-home .hm-apple__media,
  .page-home .hm-next__media{
    transition: none;
    rotate: 0deg;
  }

  .page-home .hm-hero__dial:hover{
    transform: none;
  }

  .page-home .hm-gate:hover,
  .page-home .hm-gate:focus-visible{
    translate: 0 0;
  }
}
