.page-home {
  --home-gap: clamp(1.25rem, 3.2vw, 2.5rem);
  --home-prog: 62%;
  --home-radius: var(--radius-xl);
  display: block;
}

/* ---------- 面包屑 ---------- */
.page-home .breadcrumbs {
  padding-top: clamp(0.9rem, 2.6vw, 1.6rem);
  color: var(--grey);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-900);
  padding: clamp(1.5rem, 4.5vw, 3rem) 0 clamp(2.75rem, 7vw, 5rem);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(152deg, var(--ink-700) 0%, var(--ink-800) 52%, var(--ink-900) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}

.page-home .home-hero__bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  z-index: 1;
  opacity: 0.14;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 100%);
  mask-image: linear-gradient(to top, #000 10%, transparent 100%);
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-home .home-hero__body {
  position: relative;
  z-index: 2;
}

.page-home .home-hero__title {
  margin-top: 0.35rem;
  max-width: 22ch;
}

.page-home .home-hero__lede {
  max-width: 46ch;
  margin-top: 1rem;
  color: rgba(247, 251, 249, 0.82);
}

.page-home .home-hero__grid {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(1.75rem, 4.5vw, 3rem);
}

/* ---------- 段位卡 ---------- */
.page-home .home-rank {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding: clamp(1.35rem, 3.4vw, 2.1rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--home-radius);
  background: linear-gradient(178deg, rgba(23, 61, 51, 0.96) 0%, rgba(10, 31, 26, 0.98) 100%);
  box-shadow: var(--shadow-deep);
}

.page-home .home-rank__title {
  margin: 0.3rem 0 0;
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  line-height: 1.45;
  color: var(--white);
  font-weight: 800;
}

.page-home .home-rank__badge {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 0.6rem;
}

.page-home .home-ring {
  position: absolute;
  width: clamp(140px, 42vw, 172px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 var(--home-prog), rgba(247, 251, 249, 0.1) var(--home-prog) 100%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%);
  mask: radial-gradient(circle, transparent 58%, #000 59%);
  animation: home-ring-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes home-ring-in {
  from {
    transform: rotate(-120deg) scale(0.88);
    opacity: 0;
  }
  to {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

.page-home .home-rank__medal {
  position: relative;
  z-index: 1;
  width: clamp(96px, 30vw, 122px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: var(--glow-gold);
}

.page-home .home-rank__text {
  margin: 0;
  color: rgba(247, 251, 249, 0.85);
  font-size: 0.95rem;
  line-height: 1.8;
}

.page-home .home-rank__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.page-home .home-rank__stat dt {
  color: var(--grey);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.page-home .home-rank__stat dd {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--gold-soft);
}

.page-home .home-rank__unit {
  margin-left: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.page-home .home-rank__cta {
  justify-self: start;
}

/* ---------- 回放流 ---------- */
.page-home .home-replays {
  display: grid;
  gap: 1.15rem;
  align-content: start;
  padding: clamp(1.35rem, 3.4vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: rgba(10, 31, 26, 0.72);
  box-shadow: var(--shadow-deep);
}

.page-home .home-replays__head {
  display: grid;
  gap: 0.85rem;
}

.page-home .home-replays__title {
  margin: 0.3rem 0 0;
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  line-height: 1.4;
  color: var(--white);
  font-weight: 800;
}

.page-home .home-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-replay__stage {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-900);
}

.page-home .home-replay__stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-home .home-replay__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 31, 26, 0) 42%, rgba(10, 31, 26, 0.92) 100%);
}

.page-home .home-replay__caption {
  position: absolute;
  z-index: 1;
  left: clamp(1rem, 3vw, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.35rem);
  margin: 0;
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-home .home-replays:hover .home-replay__stage img {
  transform: scale(1.035);
}

.page-home .home-replay__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-replay__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(23, 61, 51, 0.45);
  border: 1px solid transparent;
  transition: border-color 220ms ease-out, background-color 220ms ease-out, transform 220ms ease-out;
}

.page-home .home-replay__row:hover,
.page-home .home-replay__row:focus-within {
  border-color: var(--line-strong);
  background: rgba(23, 61, 51, 0.8);
  transform: translateY(-2px);
}

.page-home .home-replay__tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
}

.page-home .home-replay__row p {
  margin: 0;
  color: rgba(247, 251, 249, 0.8);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---------- 通用区块 ---------- */
.page-home .home-band {
  padding-block: clamp(2.75rem, 7vw, 5rem);
}

.page-home .home-band--paper {
  background: var(--paper);
  color: var(--ink-text);
}

.page-home .home-head {
  display: grid;
  gap: 0.75rem;
  max-width: 62ch;
  margin-bottom: clamp(1.75rem, 4.5vw, 3rem);
}

.page-home .home-head__title {
  margin: 0;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.3;
  font-weight: 900;
}

.page-home .home-head--onDark .home-head__title {
  color: var(--white);
}

.page-home .home-head__lede {
  margin: 0;
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(16, 24, 21, 0.74);
}

.page-home .home-head--onDark .home-head__lede {
  color: rgba(247, 251, 249, 0.76);
}

.page-home .home-eyebrow--dark {
  color: #8a6a24;
}

/* ---------- 资料下载 ---------- */
.page-home .home-dl__grid {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-dl__card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.15rem 1.25rem 1.3rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(16, 24, 21, 0.09);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out;
}

.page-home .home-dl__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -34px rgba(10, 31, 26, 0.8);
}

.page-home .home-dl__card .pill {
  justify-self: start;
}

.page-home .home-dl__name {
  margin: 0.15rem 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink-900);
}

.page-home .home-dl__card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(16, 24, 21, 0.72);
}

.page-home .home-dl__foot {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(1.75rem, 4.5vw, 3rem);
  align-items: center;
}

.page-home .home-dl__media {
  width: 100%;
}

.page-home .home-dl__stat {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.page-home .home-dl__num {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  line-height: 1;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.page-home .home-dl__unit {
  margin-left: 0.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #8a6a24;
}

.page-home .home-dl__stat-text {
  margin: 0;
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(16, 24, 21, 0.74);
}

.page-home .home-dl__cta {
  justify-self: start;
}

/* ---------- 版本脉搏 ---------- */
.page-home .home-pulse {
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
}

.page-home .home-pulse__list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-pulse__item {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 1.2rem 1.3rem 1.35rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(23, 61, 51, 0.4);
  transition: border-color 220ms ease-out, transform 220ms ease-out;
}

.page-home .home-pulse__item:hover {
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.page-home .home-pulse__dot {
  position: absolute;
  left: 0.65rem;
  top: 1.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(227, 180, 92, 0.16);
}

.page-home .home-pulse__when {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
}

.page-home .home-pulse__what {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.5;
}

.page-home .home-pulse__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(247, 251, 249, 0.76);
}

.page-home .home-pulse__more {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* ---------- 入口索引 ---------- */
.page-home .home-index {
  background: var(--ink-800);
}

.page-home .home-index__wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(10, 31, 26, 0.55);
  -webkit-overflow-scrolling: touch;
}

.page-home .home-index__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.page-home .home-index__caption {
  padding: 0.95rem 1.15rem 0.2rem;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--grey);
}

.page-home .home-index__table thead th {
  padding: 0.85rem 1.15rem;
  text-align: left;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--grey);
  white-space: nowrap;
}

.page-home .home-index__table tbody th,
.page-home .home-index__table tbody td {
  padding: 0.82rem 1.15rem;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  color: rgba(247, 251, 249, 0.84);
  line-height: 1.65;
}

.page-home .home-index__table tbody th {
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.page-home .home-index__table tbody tr:hover th,
.page-home .home-index__table tbody tr:hover td {
  background: rgba(23, 61, 51, 0.6);
}

.page-home .home-index__table a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 224, 200, 0.35);
  white-space: nowrap;
}

.page-home .home-index__table a:hover,
.page-home .home-index__table a:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: rgba(242, 215, 155, 0.7);
}

/* ---------- 收尾 ---------- */
.page-home .home-closing {
  background: var(--ink-700);
  padding-block: clamp(2.5rem, 6.5vw, 4.5rem);
}

.page-home .home-closing__inner {
  display: grid;
  gap: 1.75rem;
}

.page-home .home-closing__title {
  margin: 0.3rem 0 0;
  font-size: clamp(1.45rem, 4.4vw, 2.15rem);
  line-height: 1.35;
  font-weight: 900;
  color: var(--white);
}

.page-home .home-closing__desc {
  margin: 0.85rem 0 0;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(247, 251, 249, 0.78);
}

.page-home .home-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-content: center;
}

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

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

  .page-home .home-pulse__item:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  }

  .page-home .home-hero::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
  }

  .page-home .home-hero__bg {
    inset: 0 0 auto 46%;
    height: 76%;
    opacity: 0.24;
    -webkit-mask-image: linear-gradient(205deg, #000 10%, transparent 82%);
    mask-image: linear-gradient(205deg, #000 10%, transparent 82%);
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.55fr);
    align-items: start;
  }

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

  .page-home .home-dl__foot {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

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

  .page-home .home-pulse__item:first-child {
    grid-column: auto;
  }

  .page-home .home-closing__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
  }

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

@media (min-width: 1180px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.7fr);
    gap: clamp(2rem, 3.5vw, 3.25rem);
  }
}

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

  .page-home .home-replay__stage img,
  .page-home .home-dl__card,
  .page-home .home-replay__row,
  .page-home .home-pulse__item {
    transition: none;
  }

  .page-home .home-replays:hover .home-replay__stage img {
    transform: none;
  }
}
