.page-home {
  --home-flow-gap: clamp(20px, 3vw, 30px);
  --home-hairline: rgba(4, 18, 31, .14);
  background: var(--ink-950);
  color: var(--paper-50);
  overflow-x: hidden;
}

.page-home .section-title {
  font-size: clamp(1.5rem, 3.3vw, 2.15rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 10px 0 12px;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 7vw, 92px) 0 clamp(52px, 8vw, 104px);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -20%;
  right: -16%;
  width: min(920px, 104%);
  height: 122%;
  background:
    radial-gradient(120% 92% at 76% 12%, rgba(25, 245, 208, .22), transparent 62%),
    linear-gradient(148deg, var(--ink-700) 0%, var(--ink-800) 44%, var(--ink-950) 100%);
  clip-path: polygon(26% 0, 100% 7%, 100% 100%, 0 82%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -10%;
  bottom: -14%;
  width: min(560px, 74%);
  height: 48%;
  background: linear-gradient(120deg, rgba(67, 86, 214, .34), rgba(25, 245, 208, .06));
  clip-path: polygon(0 36%, 100% 0, 88% 100%, 0 100%);
  opacity: .75;
}

.page-home .hero__grid {
  display: grid;
  gap: clamp(26px, 5vw, 46px);
  align-items: start;
}

.page-home .hero__title {
  font-size: clamp(2.05rem, 5.3vw, 3.5rem);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -.028em;
  margin: 14px 0 18px;
  transform: skewX(-2.2deg);
  transform-origin: left center;
}

.page-home .hero__lede {
  max-width: 34em;
  margin: 0 0 16px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.78;
  color: rgba(246, 250, 245, .87);
}

.page-home .hero__note {
  margin: 0;
  padding: 2px 0 2px 13px;
  border-left: 2px solid var(--cyan-400);
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--cyan-400);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.page-home .hero__stats {
  list-style: none;
  margin: 30px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.page-home .hero__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--cyan-400);
}

.page-home .hero__stats li:nth-child(2) .hero__stat-num {
  color: var(--gold-400);
}

.page-home .hero__stat-label {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--steel-400);
}

.page-home .hero__panel {
  padding: clamp(12px, 2vw, 16px);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(18, 58, 85, .94), rgba(10, 34, 56, .97));
  box-shadow: var(--shadow-paper);
}

.page-home .hero__shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-md) + 4px);
  overflow: hidden;
  background: var(--ink-950);
}

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

.page-home .hero__matrix-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 16px 2px 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-400);
}

.page-home .hero__matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .hero__tag {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(4, 18, 31, .55);
  color: rgba(246, 250, 245, .9);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.page-home .hero__tag:hover {
  border-color: var(--line-cyan);
  color: var(--cyan-400);
  transform: translateY(-1px);
}

.page-home .hero__tag--hot {
  border-color: var(--line-cyan);
  background: rgba(25, 245, 208, .1);
  color: var(--cyan-400);
}

.page-home .hero__tag--gold {
  border-color: var(--line-gold);
  background: rgba(242, 184, 75, .1);
  color: var(--gold-400);
}

/* ---------- 本周复盘 ---------- */
.page-home .replays {
  padding: clamp(52px, 7vw, 92px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 50% at 6% 0%, rgba(25, 245, 208, .1), transparent 62%),
    var(--ink-950);
}

.page-home .replays__head {
  display: grid;
  gap: 18px;
}

.page-home .replays__lede {
  max-width: 40em;
  margin: 0;
  font-size: .95rem;
  line-height: 1.75;
  color: rgba(246, 250, 245, .8);
}

.page-home .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .filters__btn {
  appearance: none;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(18, 58, 85, .55);
  color: var(--paper-50);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.page-home .filters__btn:hover {
  border-color: var(--line-cyan);
  color: var(--cyan-400);
}

.page-home .filters__btn.is-active {
  border-color: var(--cyan-400);
  background: var(--cyan-400);
  color: var(--ink-950);
  font-weight: 700;
}

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

.page-home .replay {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2.4vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(18, 58, 85, .82), rgba(10, 34, 56, .94));
}

.page-home .replay__code {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--steel-400);
}

.page-home .replay__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--paper-50);
}

.page-home .replay__text {
  margin: 0;
  font-size: .86rem;
  line-height: 1.72;
  color: rgba(246, 250, 245, .74);
}

.page-home .replay__figure {
  margin: 0 0 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-950);
}

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

.page-home .replay__more {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.page-home .replay__more summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--cyan-400);
}

.page-home .replay__more summary::-webkit-details-marker {
  display: none;
}

.page-home .replay__more summary::after {
  content: " +";
}

.page-home .replay__more[open] summary::after {
  content: " −";
}

.page-home .replay__layers {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 10px;
  margin: 12px 0 0;
}

.page-home .replay__layers dt {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--mint-300);
  white-space: nowrap;
}

.page-home .replay__layers dd {
  margin: 0;
  font-size: .8rem;
  line-height: 1.65;
  color: rgba(246, 250, 245, .78);
}

/* ---------- 品牌认证 ---------- */
.page-home .cert {
  padding: clamp(52px, 7vw, 96px) 0;
  background: var(--paper-50);
  color: var(--ink-950);
  border-top: 1px solid var(--home-hairline);
  border-bottom: 1px solid var(--home-hairline);
}

.page-home .cert__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 40px);
  align-items: start;
}

.page-home .cert__figure {
  margin: 0;
  border: 1px solid var(--home-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 10px 12px 0 rgba(4, 18, 31, .08);
  background: var(--ink-950);
}

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

.page-home .cert__eyebrow {
  color: var(--cyan-600);
}

.page-home .cert .section-title {
  color: var(--ink-950);
}

.page-home .cert__lede {
  max-width: 38em;
  margin: 0 0 22px;
  font-size: .95rem;
  line-height: 1.78;
  color: rgba(4, 18, 31, .76);
}

.page-home .cert__tiers {
  list-style: none;
  counter-reset: tier;
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
}

.page-home .cert__tier {
  counter-increment: tier;
  position: relative;
  padding: 16px 18px 16px 60px;
  border: 1px solid var(--home-hairline);
  border-radius: var(--radius-md);
  background: #fff;
}

.page-home .cert__tier::before {
  content: "0" counter(tier);
  position: absolute;
  left: 18px;
  top: 15px;
  font-family: var(--font-mono);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--cyan-600);
}

.page-home .cert__tier-title {
  margin: 0 0 6px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink-950);
}

.page-home .cert__tier-text {
  margin: 0;
  font-size: .86rem;
  line-height: 1.72;
  color: rgba(4, 18, 31, .72);
}

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

.page-home .cert__perk {
  padding: 15px 16px;
  border: 1px solid var(--home-hairline);
  border-top: 3px solid var(--gold-400);
  border-radius: var(--radius-sm);
  background: rgba(4, 18, 31, .035);
}

.page-home .cert__perk-code {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  color: rgba(4, 18, 31, .5);
}

.page-home .cert__perk-title {
  margin: 6px 0 6px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink-950);
}

.page-home .cert__perk p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.68;
  color: rgba(4, 18, 31, .72);
}

.page-home .cert__cta {
  margin: 24px 0 0;
}

/* ---------- 会员中心与版本资料 ---------- */
.page-home .member {
  padding: clamp(52px, 7vw, 96px) 0;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(67, 86, 214, .2), transparent 62%),
    var(--ink-950);
}

.page-home .member__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.page-home .member__panel {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(10, 34, 56, .78);
}

.page-home .member__lede {
  margin: 0;
  font-size: .93rem;
  line-height: 1.78;
  color: rgba(246, 250, 245, .8);
}

.page-home .member__list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.page-home .member__list li {
  position: relative;
  padding-left: 22px;
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(246, 250, 245, .82);
}

.page-home .member__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan-400);
  transform: rotate(45deg);
}

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

.page-home .member__rail {
  padding: 18px;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(18, 58, 85, .92), rgba(4, 18, 31, .96));
  box-shadow: 8px 10px 0 rgba(25, 245, 208, .09);
}

.page-home .member__rail-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.page-home .member__rail-hint {
  margin: 8px 0 0;
  font-size: .78rem;
  line-height: 1.65;
  color: var(--steel-400);
}

.page-home .member__versions {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
}

.page-home .member__version {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(4, 18, 31, .55);
}

.page-home .member__version--active {
  border-color: var(--line-gold);
  background: rgba(242, 184, 75, .1);
}

.page-home .member__version-code {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--cyan-400);
}

.page-home .member__version--active .member__version-code {
  color: var(--gold-400);
}

.page-home .member__version-name {
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(246, 250, 245, .86);
}

.page-home .member__figure {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-950);
}

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

.page-home .member__rail-note {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--steel-400);
}

/* ---------- 联系与反馈 ---------- */
.page-home .connect {
  position: relative;
  padding: clamp(52px, 7vw, 96px) 0 clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-950) 0%, var(--ink-800) 100%);
}

.page-home .connect::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-400), var(--gold-400) 58%, var(--orange-500));
}

.page-home .connect__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: center;
}

.page-home .connect__lede {
  max-width: 36em;
  margin: 0;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(246, 250, 245, .82);
}

.page-home .connect__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.page-home .connect__card {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-md);
  background: rgba(4, 18, 31, .62);
}

.page-home .connect__row {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.page-home .connect__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .connect__key {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-400);
}

.page-home .connect__val {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--paper-50);
  overflow-wrap: anywhere;
}

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

  .page-home .connect__card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
  }

  .page-home .connect__row {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

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

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

@media (min-width: 880px) {
  .page-home .replays__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
  }

  .page-home .cert__grid {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  }

  .page-home .connect__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }
}

@media (min-width: 920px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: clamp(28px, 4vw, 56px);
  }
}

@media (min-width: 960px) {
  .page-home .member__grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  }
}

@media (min-width: 1040px) {
  .page-home .replays__flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .replay:nth-child(2) {
    margin-top: 30px;
  }

  .page-home .replay:nth-child(5) {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__tag,
  .page-home .filters__btn,
  .page-home .replay,
  .page-home .member__version {
    transition: none;
  }

  .page-home .hero__tag:hover {
    transform: none;
  }
}
