.page-home {
  --home-block-pad: clamp(52px, 9vw, 104px);
  --home-cut: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-home .shell {
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin-inline: auto;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  padding: 26px 0 clamp(44px, 7vw, 82px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8% -26% auto 18%;
  height: 74%;
  background:
    linear-gradient(142deg, rgba(47, 243, 208, 0.17) 0%, rgba(47, 243, 208, 0) 58%),
    linear-gradient(318deg, rgba(255, 106, 42, 0.12) 0%, rgba(255, 106, 42, 0) 54%);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 68%);
  pointer-events: none;
}

.page-home .home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .home-kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 243, 208, 0.16);
}

.page-home .home-hero__body {
  display: grid;
  gap: 32px;
}

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

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 62px);
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.page-home .home-hero__mark {
  color: var(--cyan);
  border-bottom: 3px solid rgba(255, 106, 42, 0.75);
}

.page-home .home-hero__lead {
  margin: 18px 0 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

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

.page-home .home-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 42, 33, 0.55);
}

.page-home .home-chip--on {
  color: var(--night);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

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

.page-home .home-spot {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: var(--radius);
  background: linear-gradient(115deg, rgba(18, 61, 48, 0.78), rgba(11, 42, 33, 0.86));
}

.page-home .home-spot__time {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--cyan-soft);
  letter-spacing: 0.02em;
}

.page-home .home-spot__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page-home .home-spot__league {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.page-home .home-spot__kind {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.page-home .home-spot .tag {
  background: rgba(6, 26, 20, 0.7);
  white-space: nowrap;
}

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

.page-home .home-hero__figure {
  margin: 0;
  clip-path: var(--home-cut);
  border: 1px solid var(--line);
}

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

.page-home .home-hero__figure .media__caption {
  padding: 10px 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--dim);
  background: var(--night);
}

/* ---------- 通用章节头 ---------- */
.page-home .home-block {
  position: relative;
  padding: var(--home-block-pad) 0;
}

.page-home .home-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}

.page-home .home-head__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: clamp(38px, 9vw, 72px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--struct);
}

@supports (-webkit-text-stroke: 1px var(--struct)) {
  .page-home .home-head__num {
    color: transparent;
    -webkit-text-stroke: 1px var(--struct);
  }
}

.page-home .home-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 4.4vw, 36px);
  line-height: 1.22;
  text-wrap: balance;
}

.page-home .home-head__sub {
  margin: 10px 0 0;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-more {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 243, 208, 0.45);
  padding-bottom: 3px;
}

.page-home .home-more:hover {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan-soft);
}

/* ---------- 时间轴 ---------- */
.page-home .home-timeline {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-timeline__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}

.page-home .home-timeline__inner {
  position: relative;
  z-index: 1;
}

.page-home .home-rail {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.page-home .home-rail__track {
  position: relative;
  display: flex;
  gap: 16px;
  min-width: max-content;
  padding: 8px 4px 0;
}

.page-home .home-rail__track::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 4px;
  right: 4px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(47, 243, 208, 0.22) 55%, rgba(255, 106, 42, 0.8) 100%);
}

.page-home .home-node {
  position: relative;
  flex: 0 0 auto;
  width: clamp(176px, 60vw, 224px);
  padding: 28px 0 0;
  scroll-snap-align: start;
}

.page-home .home-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--cyan);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(6, 26, 20, 0.92);
}

.page-home .home-node--hot::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(6, 26, 20, 0.92), 0 0 14px rgba(255, 106, 42, 0.55);
}

.page-home .home-node__time {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan-soft);
}

.page-home .home-node--hot .home-node__time {
  color: var(--orange-soft);
}

.page-home .home-node__league {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.page-home .home-node__kind {
  margin: 4px 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ---------- 安装入口 ---------- */
.page-home .home-install__grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.page-home .home-install__lead {
  margin: 16px 0 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  max-width: 40em;
}

.page-home .home-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 2px;
  background: var(--orange);
}

.page-home .home-list li strong {
  color: var(--ink);
  font-weight: 700;
}

.page-home .home-list--tight li {
  font-size: 14px;
}

.page-home .home-install__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.page-home .home-device {
  margin: 0 auto;
  max-width: 300px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

.page-home .home-device .media__caption {
  padding: 10px 14px 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--dim);
}

/* ---------- 日期区间 ---------- */
.page-home .home-range__grid {
  display: grid;
  gap: 22px;
}

.page-home .home-range__panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 61, 48, 0.72), rgba(11, 42, 33, 0.94));
}

.page-home .home-range__label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

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

.page-home .home-day {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--muted);
  background: rgba(6, 26, 20, 0.55);
}

.page-home .home-day--on {
  color: var(--night);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

.page-home .home-day--edge {
  color: var(--orange-soft);
  border-color: rgba(255, 106, 42, 0.5);
}

.page-home .home-range__result {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}

.page-home .home-range__count {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

.page-home .home-range__count b {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--cyan);
  padding: 0 3px;
}

.page-home .home-range__hint {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--dim);
}

.page-home .home-range__side-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- 收藏 ---------- */
.page-home .home-fav__grid {
  display: grid;
  gap: 30px;
  align-items: center;
}

.page-home .home-fav__copy p {
  margin: 16px 0 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-fav__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

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

.page-home .home-fav__figure .media__caption {
  padding: 10px 14px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--dim);
}

/* ---------- 版本 ---------- */
.page-home .home-version {
  border-top: 1px solid var(--line);
}

.page-home .home-version__grid {
  display: grid;
  gap: 26px;
}

.page-home .home-version__intro p {
  margin: 0 0 20px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-version__list {
  display: grid;
  gap: 8px;
}

.page-home .home-ver {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 42, 33, 0.72);
  overflow: hidden;
}

.page-home .home-ver .disclosure__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.page-home .home-ver .disclosure__btn:hover {
  background: rgba(47, 243, 208, 0.06);
}

.page-home .home-ver .disclosure__btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.page-home .home-ver .disclosure__idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-soft);
  letter-spacing: 0.03em;
}

.page-home .home-ver__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-home .home-ver .disclosure__sign {
  flex: 0 0 auto;
  position: relative;
  width: 14px;
  height: 14px;
}

.page-home .home-ver .disclosure__sign::before,
.page-home .home-ver .disclosure__sign::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.page-home .home-ver .disclosure__sign::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.page-home .home-ver .disclosure__sign::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.page-home .home-ver .disclosure__btn[aria-expanded="true"] .disclosure__sign::after {
  transform: scaleY(0);
  opacity: 0;
}

.page-home .home-ver .disclosure__body {
  padding: 0 16px 16px 44px;
}

.page-home .home-ver .disclosure__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 收尾 ---------- */
.page-home .home-cta {
  padding: var(--home-block-pad) 0;
  background:
    radial-gradient(120% 140% at 82% 0%, rgba(255, 106, 42, 0.14) 0%, rgba(255, 106, 42, 0) 62%),
    linear-gradient(180deg, rgba(11, 42, 33, 0.9), var(--night));
  border-top: 1px solid var(--line);
}

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

.page-home .home-cta__inner::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  width: 74px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.page-home .home-cta__kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--orange-soft);
}

.page-home .home-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1.2;
  max-width: 18em;
}

.page-home .home-cta__text {
  margin: 16px 0 0;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .home-hero__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: start;
  }

  .page-home .home-hero__figure {
    margin-top: 34px;
  }

  .page-home .home-install__grid,
  .page-home .home-fav__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(30px, 5vw, 64px);
  }

  .page-home .home-fav__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .home-version__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
}

@media (min-width: 900px) {
  .page-home .home-range__grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 28px;
    align-items: start;
  }

  .page-home .home-range__panel {
    padding: 26px;
  }

  .page-home .home-head {
    gap: 22px;
    margin-bottom: 34px;
  }

  .page-home .home-spot {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    padding: 14px 16px;
  }
}

@media (min-width: 1120px) {
  .page-home .home-hero {
    padding-top: 40px;
  }

  .page-home .home-hero__figure {
    margin-top: 46px;
  }

  .page-home .home-device {
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-ver .disclosure__sign::before,
  .page-home .home-ver .disclosure__sign::after {
    transition: none;
  }
}
