.page-home {
  --home-pad: clamp(18px, 4.5vw, 48px);
  --home-frame: 2px 26px 2px 26px;
  --home-soft-line: rgba(141, 166, 186, .2);
  color: var(--frost);
  font-family: var(--font-sans);
  background:
    radial-gradient(120% 68% at 88% -8%, rgba(53, 224, 198, .12), transparent 62%),
    radial-gradient(92% 62% at -6% 16%, rgba(20, 92, 140, .26), transparent 68%),
    var(--ink-900);
  padding: clamp(14px, 3vw, 28px) 0 clamp(56px, 9vw, 110px);
  overflow-x: clip;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .home-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--home-pad);
}

.page-home h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4.6vw, 38px);
  line-height: 1.18;
  letter-spacing: -.01em;
  font-weight: 800;
  color: var(--frost);
}

.page-home .eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aqua-400);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  margin-top: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: var(--home-frame);
  background: linear-gradient(148deg, rgba(12, 34, 56, .94) 0%, rgba(7, 20, 38, .96) 58%, rgba(20, 92, 140, .4) 100%);
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  background-image: repeating-linear-gradient(90deg, rgba(141, 166, 186, .42) 0 1px, transparent 1px 26px);
  opacity: .65;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -14%;
  top: -34%;
  width: 64%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(53, 224, 198, .16), transparent 66%);
  pointer-events: none;
  z-index: -1;
}

.page-home .home-hero__grid {
  display: grid;
  gap: clamp(26px, 5vw, 44px);
  padding: clamp(28px, 5.5vw, 56px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 44px);
}

.page-home .home-crumb {
  margin: 0 0 18px;
}

.page-home .home-crumb .breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--haze);
}

.page-home .home-crumb .breadcrumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.page-home .home-crumb a {
  color: var(--haze);
  text-decoration: none;
  transition: color .25s var(--ease);
}

.page-home .home-crumb a:hover,
.page-home .home-crumb a:focus-visible {
  color: var(--aqua-400);
}

.page-home .home-crumb__item--current {
  color: var(--aqua-400);
}

.page-home .home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 14px;
  border: 1px solid rgba(53, 224, 198, .38);
  border-radius: 999px;
  background: rgba(53, 224, 198, .08);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--aqua-400);
}

.page-home .home-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua-400);
  box-shadow: 0 0 0 3px rgba(53, 224, 198, .18);
}

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-size: clamp(30px, 7.2vw, 62px);
  line-height: 1.08;
  letter-spacing: -.015em;
  font-weight: 900;
  color: var(--frost);
  text-wrap: balance;
}

.page-home .home-hero__lead {
  margin: 0 0 26px;
  max-width: 36em;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.78;
  color: rgba(244, 248, 252, .82);
}

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

.page-home .home-save-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--haze);
}

.page-home .home-save-hint__mark {
  flex: none;
  width: 9px;
  height: 12px;
  margin-top: 3px;
  border: 1px solid var(--orange-500);
  border-radius: 1px 1px 3px 3px;
  background: linear-gradient(180deg, rgba(255, 106, 42, .34), transparent);
}

.page-home .home-save-hint--light {
  margin-top: 18px;
  color: rgba(5, 14, 28, .62);
}

.page-home .home-hero__ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 13px;
  color: var(--haze);
}

.page-home .home-hero__ticker .mono {
  margin-right: 4px;
  font-size: 15px;
  color: var(--aqua-400);
}

.page-home .home-hero__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 11;
  min-height: 220px;
  border-radius: 2px 22px 2px 22px;
  background: var(--ink-800);
  overflow: hidden;
}

.page-home .home-hero__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
}

.page-home .home-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(5, 14, 28, 0) 35%, rgba(5, 14, 28, .74) 100%);
  pointer-events: none;
}

.page-home .home-hero__figure figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(244, 248, 252, .8);
}

/* ---------- 三条主线 ---------- */
.page-home .home-lines {
  margin-top: clamp(38px, 7vw, 76px);
}

.page-home .home-head {
  max-width: 44em;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.page-home .home-head__sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--haze);
}

.page-home .home-lines__grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-strong);
  border-radius: var(--home-frame);
  overflow: hidden;
}

.page-home .home-line {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3.4vw, 34px);
  background: linear-gradient(155deg, rgba(12, 34, 56, .92), rgba(7, 20, 38, .95));
  color: var(--frost);
  text-decoration: none;
  transition: background .4s var(--ease);
}

.page-home .home-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--aqua-400), var(--blue-500));
  transition: height .45s var(--ease);
}

.page-home .home-line:hover,
.page-home .home-line:focus-visible {
  background: linear-gradient(155deg, rgba(20, 92, 140, .55), rgba(7, 20, 38, .96));
}

.page-home .home-line:hover::after,
.page-home .home-line:focus-visible::after {
  height: 100%;
}

.page-home .home-line__idx {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--aqua-400);
}

.page-home .home-line__title {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  letter-spacing: -.005em;
}

.page-home .home-line__text {
  flex: 1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(244, 248, 252, .74);
}

.page-home .home-line__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--orange-500);
}

.page-home .home-lines > .home-save-hint {
  margin-top: 18px;
}

/* ---------- 标签 ---------- */
.page-home .home-tags {
  margin-top: clamp(44px, 8vw, 92px);
}

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

.page-home .home-tags__lead {
  margin: 0 0 22px;
  max-width: 40em;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(244, 248, 252, .78);
}

.page-home .home-tags__rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .home-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  font-size: 13.5px;
  transition: transform .3s var(--ease), filter .3s var(--ease);
}

.page-home .home-tag .mono {
  font-size: 10px;
  letter-spacing: .12em;
  opacity: .7;
}

.page-home .home-tag:hover,
.page-home .home-tag:focus-visible {
  transform: translateY(-2px);
  filter: hue-rotate(-18deg) saturate(1.15);
}

.page-home .home-tags__foot {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 2px solid rgba(53, 224, 198, .45);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 248, 252, .72);
}

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

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

.page-home .home-series {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--home-frame);
  background: var(--surface-soft);
}

.page-home .home-series__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aqua-400);
}

.page-home .home-series__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-series__list li {
  display: grid;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

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

.page-home .home-series__desc {
  font-size: 13px;
  line-height: 1.62;
  color: var(--haze);
}

/* ---------- 版本与性能 ---------- */
.page-home .home-version {
  margin-top: clamp(44px, 8vw, 94px);
  padding: clamp(24px, 5vw, 54px);
  border-radius: 2px 34px 2px 34px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(53, 224, 198, .22), transparent 60%),
    linear-gradient(155deg, #F4F8FC, #DCE9F4 72%, #CFE2F0);
  color: var(--ink-900);
}

.page-home .home-version h2 {
  color: var(--ink-900);
}

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

.page-home .home-version__lead > p:not(.home-save-hint) {
  margin: 0 0 20px;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(5, 14, 28, .78);
}

.page-home .home-version .btn--primary {
  color: var(--ink-900);
}

.page-home .home-version__stats {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(5, 14, 28, .14);
  border-radius: 2px 22px 2px 22px;
  background: rgba(5, 14, 28, .14);
  overflow: hidden;
}

.page-home .home-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 20px;
  background: #F7FAFD;
}

.page-home .home-stat__num {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--blue-500);
}

.page-home .home-stat__num small {
  margin-left: 2px;
  font-size: .45em;
  color: var(--haze);
}

.page-home .home-stat__label {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(5, 14, 28, .7);
}

.page-home .home-version__figure {
  margin: 0;
  border-top: 1px solid rgba(5, 14, 28, .14);
  background: #EAF2F9;
}

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

.page-home .home-timeline {
  display: grid;
  gap: 1px;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(5, 14, 28, .16);
  background: rgba(5, 14, 28, .12);
}

.page-home .home-timeline li {
  padding: 16px 18px;
  background: rgba(247, 250, 253, .74);
}

.page-home .home-timeline .mono {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(5, 14, 28, .55);
}

.page-home .home-timeline p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(5, 14, 28, .78);
}

.page-home .home-timeline .is-latest {
  background: #FBFDFF;
}

.page-home .home-timeline .is-latest .mono {
  color: var(--blue-500);
  font-weight: 700;
}

/* ---------- 收藏 ---------- */
.page-home .home-saved {
  margin-top: clamp(44px, 8vw, 94px);
}

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

.page-home .home-saved__body > p:not(.eyebrow) {
  margin: 0 0 18px;
  max-width: 38em;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(244, 248, 252, .78);
}

.page-home .home-saved__list {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .home-saved__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(244, 248, 252, .82);
}

.page-home .home-saved__list .mono {
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--aqua-400);
}

.page-home .home-saved__details {
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px 20px 2px 20px;
  background: var(--surface-soft);
}

.page-home .home-saved__details summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--aqua-400);
}

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

.page-home .home-saved__details summary::after {
  content: " ＋";
}

.page-home .home-saved__details[open] summary::after {
  content: " －";
}

.page-home .home-saved__details p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 248, 252, .72);
}

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

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

/* ---------- 结尾 ---------- */
.page-home .home-close {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--line-strong);
}

.page-home .home-close__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--home-frame);
  background: var(--line);
  overflow: hidden;
}

.page-home .home-close__stats > div {
  padding: 18px;
  background: linear-gradient(150deg, rgba(12, 34, 56, .88), rgba(7, 20, 38, .92));
}

.page-home .home-close__stats .mono {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(20px, 3.4vw, 28px);
  letter-spacing: -.01em;
  color: var(--aqua-400);
}

.page-home .home-close__stats p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--haze);
}

.page-home .home-close__steps {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: home-step;
}

.page-home .home-close__steps li {
  position: relative;
  padding-left: 36px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(244, 248, 252, .8);
}

.page-home .home-close__steps li::before {
  counter-increment: home-step;
  content: counter(home-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 106, 42, .42);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange-500);
}

.page-home .home-close__steps strong {
  color: var(--frost);
  font-weight: 700;
}

.page-home .home-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 断点 ---------- */
@media (min-width: 780px) {
  .page-home .home-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

@media (min-width: 900px) {
  .page-home .home-close {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .page-home .home-version__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    align-items: start;
  }

  .page-home .home-saved__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
  }

  .page-home .home-saved__body {
    order: 1;
  }

  .page-home .home-saved__figure {
    order: 2;
  }
}

@media (min-width: 940px) {
  .page-home .home-tags__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: stretch;
    gap: clamp(32px, 4vw, 60px);
  }

  .page-home .home-hero__figure {
    aspect-ratio: auto;
    height: 100%;
    min-height: 340px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-line,
  .page-home .home-line::after,
  .page-home .home-tag,
  .page-home .home-crumb a {
    transition: none;
  }
}
