.page-home {
  --home-pad-y: clamp(64px, 9vw, 118px);
  --home-card-bg: linear-gradient(180deg, var(--carbon) 0%, rgba(5, 7, 11, 0) 100%);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 13vw, 138px) 0 clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, #0A1018 0%, var(--ink) 82%);
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.page-home .home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.26;
}

.page-home .home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(118% 92% at 16% 26%, rgba(5, 7, 11, 0.34) 0%, rgba(5, 7, 11, 0.92) 74%);
}

.page-home .home-hero__beam {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 20%;
  height: 180px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 30%, var(--cyan) 64%, transparent 100%);
  opacity: 0.16;
  filter: blur(26px);
  mix-blend-mode: screen;
  animation: home-beam 8s var(--ease) infinite;
}

@keyframes home-beam {
  0%, 100% { transform: translateX(-3%); opacity: 0.13; }
  50% { transform: translateX(3%); opacity: 0.22; }
}

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

.page-home .home-hero__title {
  margin: 16px 0 0;
  font-size: clamp(38px, 7vw, 92px);
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 92%;
  letter-spacing: -0.02em;
  color: var(--frost);
  max-width: 13ch;
}

.page-home .home-hero__lead {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-hero__ticker {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 28px 0 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-home .home-hero__ticker li {
  display: inline-flex;
  align-items: baseline;
}

.page-home .home-hero__ticker .num {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
  margin-right: 6px;
}

.page-home .home-hero__rules {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 34px;
  padding: 18px 20px 20px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(194, 31, 90, 0.62);
  border-radius: var(--r);
  background: linear-gradient(140deg, rgba(194, 31, 90, 0.24) 0%, rgba(16, 20, 27, 0.94) 64%);
  color: var(--frost);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-mid) var(--ease);
}

.page-home .home-hero__rules:hover,
.page-home .home-hero__rules:focus-visible {
  border-color: var(--neon);
  transform: translateY(-2px);
}

.page-home .home-hero__rules-tag {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 2px;
  background: var(--neon);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.page-home .home-hero__rules-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--frost);
}

.page-home .home-hero__rules-go {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue);
}

/* ---------- 三条路径 ---------- */
.page-home .home-paths__grid {
  display: grid;
  gap: var(--gap);
}

.page-home .home-path {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 28px 24px 26px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--steel);
  border-radius: var(--r);
  background: var(--home-card-bg);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-mid) var(--ease);
}

.page-home .home-path:hover,
.page-home .home-path:focus-visible {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.page-home .home-path--rules:hover,
.page-home .home-path--rules:focus-visible {
  border-color: var(--neon);
}

.page-home .home-path__idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--brushed);
}

.page-home .home-path__name {
  font-size: 24px;
  font-weight: 800;
  font-stretch: 92%;
  letter-spacing: -0.01em;
  color: var(--frost);
}

.page-home .home-path__desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-path__go {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.page-home .home-path--rules .home-path__go {
  color: var(--neon);
}

/* ---------- 通用图容器 ---------- */
.page-home .home-fig {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--steel);
  border-radius: var(--r);
  background: var(--carbon);
}

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

.page-home .home-fig--wide { aspect-ratio: 2 / 1; }
.page-home .home-fig--tall { aspect-ratio: 4 / 5; }
.page-home .home-fig--std { aspect-ratio: 4 / 3; }

/* ---------- 九十天记录 ---------- */
.page-home .home-log__fig {
  margin-bottom: 40px;
}

.page-home .home-tl {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  position: relative;
}

.page-home .home-tl::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--brushed) 0 7px, transparent 7px 15px);
}

.page-home .home-tl__item {
  position: relative;
  padding: 0 0 28px;
}

.page-home .home-tl__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(127, 182, 217, 0.16);
}

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

.page-home .home-tl__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .home-tl__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--frost);
}

.page-home .home-tl__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 52ch;
}

.page-home .home-log__more {
  margin: 36px 0 0;
}

/* ---------- 九类常玩 ---------- */
.page-home .home-types__layout {
  display: grid;
  gap: 36px;
}

.page-home .home-types__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.page-home .home-type__link {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 12px;
  padding: 15px 8px 15px 14px;
  border-bottom: 1px solid var(--steel);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}

.page-home .home-type__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}

.page-home .home-type__link:hover,
.page-home .home-type__link:focus-visible {
  background: rgba(16, 20, 27, 0.9);
  padding-left: 20px;
  outline: none;
}

.page-home .home-type__link:hover::before,
.page-home .home-type__link:focus-visible::before {
  opacity: 1;
}

.page-home .home-type__idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--brushed);
}

.page-home .home-type__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--frost);
}

.page-home .home-type__stat {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-home .home-type__meta {
  grid-column: 2 / -1;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 条款与比对 ---------- */
.page-home .home-duo__grid {
  display: grid;
  gap: var(--gap);
}

.page-home .home-duo__card {
  position: relative;
  padding: 30px 26px 30px;
  border: 1px solid var(--steel);
  border-radius: var(--r);
  background: var(--carbon);
}

.page-home .home-duo__card--rules {
  border-left: 2px solid var(--neon);
}

.page-home .home-duo__card--compare {
  border-left: 2px solid var(--cyan);
}

.page-home .home-duo__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  font-stretch: 92%;
  color: var(--frost);
}

.page-home .home-duo__text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-duo__points {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.page-home .home-duo__points li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--frost);
}

.page-home .home-duo__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--brushed);
}

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

/* ---------- 更新节奏 ---------- */
.page-home .home-rhythm__grid {
  display: grid;
  gap: 34px;
}

.page-home .home-rhythm__text {
  margin: 4px 0 26px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-rhythm__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 24px;
  border: 1px solid var(--steel);
  background: var(--steel);
}

.page-home .home-rhythm__stat {
  padding: 16px 16px 15px;
  background: var(--ink);
}

.page-home .home-rhythm__stat dt {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .home-rhythm__stat dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--frost);
}

.page-home .home-rhythm__stat dd .num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--amber);
  margin-right: 3px;
}

.page-home .home-rhythm__note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--steel);
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 收束 ---------- */
.page-home .home-cta {
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px);
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.85) 0%, var(--ink) 100%);
}

.page-home .home-cta__inner {
  max-width: 640px;
}

.page-home .home-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  font-stretch: 92%;
  color: var(--frost);
}

.page-home .home-cta__text {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--mist);
}

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

/* ---------- 平板 ---------- */
@media (min-width: 768px) {
  .page-home .home-tl {
    padding-left: 30px;
  }

  .page-home .home-tl__item::before {
    left: -30px;
  }

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

  .page-home .home-path {
    grid-column: span 4;
  }

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

  .page-home .home-path:nth-child(3) {
    margin-top: 72px;
  }

  .page-home .home-types__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }

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

  .page-home .home-duo__card--compare {
    margin-top: 48px;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1024px) {
  .page-home .home-hero {
    padding-bottom: clamp(96px, 11vw, 148px);
  }

  .page-home .home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    grid-template-areas:
      "head head"
      "lead rules"
      "tick rules";
    column-gap: 56px;
    align-items: end;
  }

  .page-home .home-hero__head {
    grid-area: head;
  }

  .page-home .home-hero__lead {
    grid-area: lead;
  }

  .page-home .home-hero__ticker {
    grid-area: tick;
  }

  .page-home .home-hero__rules {
    grid-area: rules;
    margin-top: 0;
    align-self: end;
  }

  .page-home .home-types__layout {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 56px;
  }

  .page-home .home-types__fig {
    position: sticky;
    top: calc(var(--rail-w) + 32px);
  }

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

  .page-home .home-type__link:nth-child(2n) {
    padding-left: 24px;
  }

  .page-home .home-rhythm__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 64px;
  }

  .page-home .home-rhythm__fig {
    margin-top: 72px;
  }

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

/* ---------- 大屏收敛 ---------- */
@media (min-width: 1440px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__beam {
    animation: none;
    opacity: 0.16;
  }

  .page-home .home-path,
  .page-home .home-hero__rules,
  .page-home .home-type__link {
    transition: none;
  }
}
