.page-home {
  --home-gap: clamp(16px, 2.2vw, 26px);
  --home-radius: var(--r-lg);
}

.page-home .section {
  position: relative;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(38px, 6.5vw, 84px) clamp(46px, 7vw, 92px);
  background:
    radial-gradient(120% 80% at 82% 0%, rgba(53, 208, 186, 0.18), transparent 62%),
    radial-gradient(90% 70% at 0% 100%, rgba(58, 42, 92, 0.38), transparent 60%),
    var(--ink-900);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-home .home-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(7, 26, 22, 0.97) 0%, rgba(7, 26, 22, 0.86) 44%, rgba(7, 26, 22, 0.46) 100%);
}

.page-home .home-hero__inner {
  position: relative;
  display: grid;
  gap: clamp(30px, 4.5vw, 52px);
}

@media (min-width: 980px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.82fr);
    align-items: start;
    gap: clamp(32px, 4vw, 64px);
  }
}

.page-home .home-hero__title {
  margin: 14px 0 18px;
  font-size: clamp(1.95rem, 6.2vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0.015em;
  color: var(--mist);
  text-wrap: balance;
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 54ch;
  color: var(--mist);
  opacity: 0.88;
}

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

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

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

.page-home .home-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.page-home .home-hero__statNum {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1;
  color: var(--lime);
}

.page-home .home-hero__statLabel {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--steel);
}

/* 首屏错落数据卡 */
.page-home .home-hero__stack {
  display: grid;
  gap: var(--home-gap);
}

@media (min-width: 980px) {
  .page-home .home-hero__stack {
    padding-top: 6px;
  }
  .page-home .home-stack-card:nth-child(2) {
    margin-left: clamp(0px, 8%, 54px);
  }
  .page-home .home-stack-card:nth-child(3) {
    margin-right: clamp(0px, 5%, 34px);
  }
}

.page-home .home-stack-card {
  border-radius: var(--home-radius);
  border: 1px solid var(--line);
  background: rgba(11, 33, 28, 0.74);
  backdrop-filter: blur(14px);
  padding: 18px 20px;
  box-shadow: 0 22px 46px -30px rgba(0, 0, 0, 0.92);
}

.page-home .home-stack-card--cert {
  border-color: rgba(201, 164, 92, 0.5);
  background: linear-gradient(158deg, rgba(201, 164, 92, 0.16), rgba(11, 33, 28, 0.82));
}

.page-home .home-stack-card--quota {
  border-left: 3px solid var(--lime);
}

.page-home .home-stack-card--ring {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-home .home-stack-card__k {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  color: var(--steel);
}

.page-home .home-stack-card__v {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--mist);
  line-height: 1.45;
}

.page-home .home-stack-card__note {
  margin: 9px 0 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--steel);
}

.page-home .home-stack-card__link {
  display: inline-block;
  margin-top: 13px;
  font-size: 0.84rem;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 255, 61, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .home-stack-card__link:hover {
  border-bottom-color: var(--lime);
  color: var(--mist);
}

.page-home .home-cert__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .home-cert__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.18);
}

.page-home .home-quota__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}

.page-home .home-quota__value .data-num {
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1;
  color: var(--lime);
}

.page-home .home-quota__unit {
  font-size: 0.85rem;
  color: var(--mist);
}

.page-home .home-ring {
  position: relative;
  flex: 0 0 86px;
  width: 86px;
  aspect-ratio: 1 / 1;
}

.page-home .home-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.page-home .home-ring__track {
  fill: none;
  stroke: rgba(234, 242, 236, 0.14);
  stroke-width: 8;
}

.page-home .home-ring__fill {
  fill: none;
  stroke: var(--teal);
  stroke-width: 8;
  stroke-linecap: round;
}

.page-home .home-ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--mist);
}

.page-home .home-ring__num .data-num {
  font-size: 1.32rem;
  line-height: 1;
}

.page-home .home-ring__pct {
  font-size: 0.78rem;
  color: var(--teal);
  margin-left: 2px;
}

.page-home .home-ring__meta {
  min-width: 0;
}

/* ---------- 通用章节头 ---------- */
.page-home .home-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(24px, 3vw, 38px);
}

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

.page-home .home-head__lede {
  margin: 0;
  max-width: 52ch;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--steel);
}

/* ---------- 联赛分区 ---------- */
.page-home .home-leagues {
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800));
}

.page-home .home-leagues__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-leagues__texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
}

.page-home .home-leagues__texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink-900) 0%, rgba(11, 33, 28, 0.42) 42%, var(--ink-800) 100%);
}

.page-home .home-leagues > .container {
  position: relative;
  z-index: 1;
}

.page-home .home-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: clamp(20px, 3vw, 30px);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-rail::-webkit-scrollbar {
  height: 4px;
}

.page-home .home-rail::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 4px;
}

.page-home .home-rail__chip {
  flex: 0 0 auto;
  appearance: none;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--steel);
  font-family: inherit;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-home .home-rail__chip:hover {
  color: var(--mist);
  border-color: var(--mist);
}

.page-home .home-rail__chip[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-900);
  font-weight: 700;
}

.page-home .home-league-grid {
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.page-home .home-league {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: rgba(11, 33, 28, 0.78);
}

.page-home .home-league__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .home-league__name {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-home .home-league__facts {
  margin: 0;
  display: grid;
  gap: 9px;
}

.page-home .home-league__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(234, 242, 236, 0.1);
}

.page-home .home-league__fact:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-home .home-league__fact dt {
  margin: 0;
  font-size: 0.78rem;
  color: var(--steel);
}

.page-home .home-league__fact dd {
  margin: 0;
  font-size: 0.84rem;
  color: var(--mist);
}

.page-home .home-league--all {
  border-color: rgba(201, 164, 92, 0.42);
  background: linear-gradient(165deg, rgba(58, 42, 92, 0.6), rgba(11, 33, 28, 0.86));
}

.page-home .home-league__more {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.72;
  color: var(--steel);
}

/* ---------- 三项对照 ---------- */
.page-home .home-compare {
  overflow: hidden;
  background: var(--ink-700);
}

.page-home .home-compare__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-compare__texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
}

.page-home .home-compare__texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink-700) 0%, rgba(16, 21, 20, 0.84) 60%, var(--ink-700) 100%);
}

.page-home .home-compare > .container {
  position: relative;
  z-index: 1;
}

.page-home .home-compare__grid {
  display: grid;
  gap: var(--home-gap);
}

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

.page-home .home-plan {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, rgba(7, 26, 22, 0.95), rgba(11, 33, 28, 0.95));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .home-plan:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 255, 61, 0.45);
}

.page-home .home-plan__label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.15em;
  color: var(--lime);
}

.page-home .home-plan__title {
  margin: 0 0 10px;
  font-size: 1.28rem;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.page-home .home-plan__desc {
  margin: 0 0 18px;
  font-size: 0.87rem;
  line-height: 1.72;
  color: var(--steel);
}

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

.page-home .home-plan__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem;
  color: var(--mist);
}

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

.page-home .home-plan__list .data-num {
  font-size: 0.84rem;
  color: var(--lime);
  white-space: nowrap;
}

.page-home .home-plan__foot {
  margin-top: auto;
}

/* ---------- 资料下载 ---------- */
.page-home .home-assets {
  background: linear-gradient(180deg, var(--ink-700), var(--ink-900));
}

.page-home .home-assets__grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

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

.page-home .home-assets__figure {
  margin: 0;
}

.page-home .home-assets__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-assets__lede {
  margin: 14px 0 0;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--steel);
}

.page-home .home-assets__list {
  list-style: none;
  margin: clamp(18px, 2.6vw, 26px) 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-assets__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.91rem;
  line-height: 1.76;
  color: var(--mist);
}

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

/* ---------- 版本与赛季 ---------- */
.page-home .home-updates {
  background: var(--ink-900);
}

.page-home .home-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: clamp(16px, 2.2vw, 22px);
}

.page-home .home-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--lime), rgba(201, 164, 92, 0.5) 55%, rgba(234, 242, 236, 0.08));
}

.page-home .home-timeline__item {
  position: relative;
  padding-left: 34px;
}

.page-home .home-timeline__dot {
  position: absolute;
  left: 0;
  top: 9px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid var(--lime);
}

.page-home .home-timeline__item:first-child .home-timeline__dot {
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(200, 255, 61, 0.14);
}

.page-home .home-timeline__card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(11, 33, 28, 0.7);
}

.page-home .home-timeline__tag {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.page-home .home-timeline__card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.page-home .home-timeline__card p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.76;
  color: var(--steel);
}

.page-home .home-updates__foot {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(201, 164, 92, 0.36);
  border-radius: var(--home-radius);
  background: linear-gradient(120deg, rgba(201, 164, 92, 0.13), rgba(11, 33, 28, 0.92));
  display: grid;
  gap: 16px;
}

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

.page-home .home-updates__foot p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .home-updates__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 滚动显现 ---------- */
.page-home [data-reveal] {
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

:where(.js) .page-home [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

:where(.js) .page-home [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  :where(.js) .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-home .home-plan:hover {
    transform: none;
  }
}

.page-home {
  --reveal-delay: 0.3s;
}
