.page-home {
  --home-pad: clamp(2.6rem, 8vw, 6rem);
  --home-cut: 14px;
  background: var(--ink);
  color: var(--sand);
  overflow-x: clip;
}

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

.page-home p {
  margin: 0;
}

.page-home .section-head {
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.page-home .eyebrow {
  display: block;
  margin-bottom: .7rem;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(2.6rem, 7vw, 4.4rem) 0 clamp(2.4rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(115% 85% at 94% 2%, rgba(200, 16, 46, .34), transparent 64%),
    radial-gradient(85% 72% at 0% 100%, rgba(15, 123, 123, .30), transparent 62%),
    var(--ink);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--red) 0 46px,
    var(--gold) 46px 78px,
    var(--teal) 78px 118px,
    var(--ink) 118px 132px);
  opacity: .9;
}

.page-home .hero__inner {
  display: grid;
  gap: clamp(1.8rem, 5vw, 3rem);
  align-items: end;
}

.page-home .hero__context {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: clamp(.9rem, 2.5vw, 1.4rem);
}

.page-home .hero__context-dot {
  width: 9px;
  height: 9px;
  background: var(--red-bright);
  transform: rotate(45deg);
  flex: none;
}

.page-home .hero__title {
  margin-bottom: clamp(1rem, 3vw, 1.6rem);
}

.page-home .hero__brand {
  display: block;
  font-size: clamp(2.9rem, 12vw, 6rem);
  letter-spacing: .03em;
  background: linear-gradient(96deg, var(--gold-bright) 0%, var(--red-bright) 56%, var(--teal-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero__title-sub {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 3.6vw, 1.55rem);
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--cream);
}

.page-home .hero__intro {
  max-width: 46ch;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  line-height: 1.85;
  color: rgba(232, 213, 183, .88);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: clamp(1.4rem, 4vw, 2rem);
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1.4rem;
  margin: clamp(1.8rem, 5vw, 2.6rem) 0 0;
  padding-top: clamp(1.2rem, 3vw, 1.8rem);
  border-top: 1px dashed var(--line-strong);
}

.page-home .hero__stat dt {
  font-size: .78rem;
  letter-spacing: .06em;
  color: rgba(232, 213, 183, .66);
  margin-bottom: .28rem;
}

.page-home .hero__stat dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cream);
}

.page-home .hero__num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-right: .1em;
}

.page-home .hero__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 var(--home-cut), var(--home-cut) 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(152deg, rgba(200, 16, 46, .36), transparent 46%, rgba(15, 123, 123, .34));
  pointer-events: none;
}

.page-home .hero__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1;
  padding: .85rem 1rem;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(11, 11, 15, .86), transparent);
}

/* ---------- 栏目索引 ---------- */
.page-home .index {
  padding: var(--home-pad) 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
}

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

.page-home .index__lede {
  margin-top: .9rem;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(232, 213, 183, .82);
}

.page-home .index__quick {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: clamp(1.3rem, 3.5vw, 2rem);
}

.page-home .index__quick .tag {
  text-decoration: none;
}

.page-home .index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .index-card {
  --card-accent: var(--gold);
  background:
    linear-gradient(90deg, var(--card-accent) 0 52px, transparent 52px) top left / 100% 3px no-repeat,
    linear-gradient(164deg, rgba(232, 213, 183, .09), rgba(22, 22, 31, .72));
  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)));
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}

.page-home .index-card--red { --card-accent: var(--red-bright); }
.page-home .index-card--gold { --card-accent: var(--gold-bright); }
.page-home .index-card--teal { --card-accent: var(--teal-bright); }

.page-home .index-card:hover,
.page-home .index-card:focus-within {
  transform: translateY(-4px);
}

.page-home .index-card__link {
  display: block;
  height: 100%;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  color: inherit;
  text-decoration: none;
}

.page-home .index-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .22em;
  color: var(--card-accent);
  margin-bottom: .65rem;
}

.page-home .index-card__title {
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  color: var(--cream);
  margin-bottom: .55rem;
}

.page-home .index-card__desc {
  font-size: .95rem;
  line-height: 1.78;
  color: rgba(232, 213, 183, .78);
}

.page-home .index-card__go {
  display: inline-block;
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--teal-bright);
}

.page-home .index__figure {
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--home-cut));
}

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

/* ---------- 注册与收藏 ---------- */
.page-home .register {
  padding: var(--home-pad) 0;
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(212, 160, 23, .14), transparent 60%),
    var(--ink-soft);
  border-top: 1px solid var(--line);
}

.page-home .register__inner {
  display: grid;
  gap: clamp(1.8rem, 5vw, 3rem);
  align-items: start;
}

.page-home .register__lede,
.page-home .archive__lede,
.page-home .roots__lede,
.page-home .updates__lede,
.page-home .connect__copy p {
  margin-top: .9rem;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(232, 213, 183, .82);
}

.page-home .register h2,
.page-home .archive h2,
.page-home .roots h2,
.page-home .updates h2,
.page-home .connect h2 {
  font-size: clamp(1.7rem, 6vw, 2.7rem);
  color: var(--cream);
}

.page-home .steps {
  list-style: none;
  margin: clamp(1.4rem, 4vw, 2rem) 0 0;
  padding: 0;
}

.page-home .step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(.9rem, 3vw, 1.5rem);
  align-items: start;
  padding: clamp(.95rem, 3vw, 1.3rem) 0;
  border-top: 1px dashed var(--line-strong);
}

.page-home .step:last-child {
  border-bottom: 1px dashed var(--line-strong);
}

.page-home .step__num {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 700;
  line-height: .9;
  color: var(--gold-bright);
  letter-spacing: -.02em;
}

.page-home .step__title {
  font-size: 1.12rem;
  color: var(--cream);
  margin-bottom: .4rem;
}

.page-home .step__text {
  font-size: .94rem;
  line-height: 1.76;
  color: rgba(232, 213, 183, .78);
}

.page-home .rail {
  position: relative;
  height: 4px;
  margin-top: 1.1rem;
  background: rgba(232, 213, 183, .16);
  overflow: hidden;
}

.page-home .rail__fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--red), var(--gold-bright) 52%, var(--teal-bright));
  animation: home-rail 1.6s var(--ease) both;
}

@keyframes home-rail {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.page-home .collect {
  margin-top: clamp(1.5rem, 4vw, 2.2rem);
  padding: clamp(1.1rem, 3.2vw, 1.6rem);
  background: linear-gradient(150deg, rgba(15, 123, 123, .26), rgba(22, 22, 31, .82));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .collect__title {
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: .8rem;
}

.page-home .collect__list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.page-home .collect__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .93rem;
  line-height: 1.75;
  color: rgba(232, 213, 183, .84);
}

.page-home .collect__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  background: var(--teal-bright);
  transform: rotate(45deg);
}

.page-home .collect__list strong {
  color: var(--cream);
  font-weight: 600;
}

.page-home .register__figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  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 .register__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 版本归档 ---------- */
.page-home .archive {
  padding: var(--home-pad) 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  border-top: 1px solid var(--line);
}

.page-home .archive__inner {
  display: grid;
  gap: clamp(1.6rem, 5vw, 3rem);
  align-items: center;
}

.page-home .archive__figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  clip-path: polygon(0 var(--home-cut), var(--home-cut) 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .archive__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-home .archive__points {
  list-style: none;
  margin: clamp(1.2rem, 3.5vw, 1.8rem) 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}

.page-home .archive__points li {
  position: relative;
  padding-left: 1.3rem;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(232, 213, 183, .82);
}

.page-home .archive__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 14px;
  height: 2px;
  background: var(--gold-bright);
}

.page-home .archive__points strong {
  color: var(--cream);
  font-weight: 600;
}

/* ---------- 扎根新疆 ---------- */
.page-home .roots {
  padding: var(--home-pad) 0;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(212, 160, 23, .16), transparent 62%),
    radial-gradient(80% 60% at 0% 100%, rgba(200, 16, 46, .18), transparent 60%),
    var(--ink-soft);
  border-top: 1px solid var(--line);
}

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

.page-home .roots__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .roots__card {
  padding: 1.15rem 1.2rem 1.35rem;
  border-left: 3px solid var(--gold);
  background: rgba(232, 213, 183, .055);
}

.page-home .roots__card:nth-child(2) { border-left-color: var(--red-bright); }
.page-home .roots__card:nth-child(3) { border-left-color: var(--teal-bright); }
.page-home .roots__card:nth-child(4) { border-left-color: var(--gold-bright); }

.page-home .roots__card-title {
  font-size: 1.08rem;
  color: var(--cream);
  margin-bottom: .55rem;
}

.page-home .roots__card-text {
  font-size: .93rem;
  line-height: 1.8;
  color: rgba(232, 213, 183, .8);
}

/* ---------- 媒体动态 ---------- */
.page-home .updates {
  padding: var(--home-pad) 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.page-home .updates__inner {
  display: grid;
  gap: clamp(1.6rem, 5vw, 3rem);
  align-items: start;
}

.page-home .updates__head .btn {
  margin-top: 1.3rem;
}

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

.page-home .updates__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .updates__when {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--gold-bright);
  white-space: nowrap;
}

.page-home .updates__link {
  font-size: .98rem;
  line-height: 1.7;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.page-home .updates__link:hover,
.page-home .updates__link:focus-visible {
  color: var(--teal-bright);
  border-bottom-color: var(--teal-bright);
}

/* ---------- 联系 ---------- */
.page-home .connect {
  padding: var(--home-pad) 0;
  background: linear-gradient(148deg, var(--red-deep) 0%, var(--ink) 68%);
  border-top: 1px solid var(--line);
}

.page-home .connect__inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.6rem);
  align-items: start;
}

.page-home .connect__copy h2 {
  font-size: clamp(1.6rem, 5.6vw, 2.4rem);
  color: var(--cream);
}

.page-home .connect__rows {
  display: grid;
  gap: .85rem;
}

.page-home .connect__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  background: rgba(11, 11, 15, .55);
  border-left: 3px solid var(--gold-bright);
}

.page-home .connect__label {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  color: rgba(232, 213, 183, .66);
  flex: none;
}

.page-home .connect__value {
  font-size: .93rem;
  color: var(--cream);
  word-break: break-all;
  flex: 1 1 auto;
  min-width: 0;
}

.page-home .connect__rows .btn {
  justify-self: start;
}

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

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

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

@media (min-width: 900px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(2rem, 5vw, 4.4rem);
  }

  .page-home .hero__figure {
    margin-bottom: .6rem;
  }

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

  .page-home .roots__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .connect__inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .page-home .register__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }

  .page-home .archive__inner {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  }

  .page-home .updates__inner {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .rail__fill {
    animation: none;
    transform: none;
  }

  .page-home .index-card,
  .page-home .updates__link {
    transition: none;
  }

  .page-home .index-card:hover,
  .page-home .index-card:focus-within {
    transform: none;
  }
}
