.page-home {
  --home-grid-unit: 72px;
  --home-cut: 26px;
  display: block;
  padding-bottom: clamp(36px, 6vw, 84px);
  overflow-x: hidden;
}

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

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(30, 58, 95, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 95, 0.45) 1px, transparent 1px);
  background-size: var(--home-grid-unit) var(--home-grid-unit);
  -webkit-mask-image: radial-gradient(125% 95% at 18% 4%, #000 12%, transparent 76%);
  mask-image: radial-gradient(125% 95% at 18% 4%, #000 12%, transparent 76%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(56, 242, 208, 0.16), transparent 62%);
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 5vw, 52px);
  padding-block: clamp(28px, 5vw, 60px) clamp(32px, 5vw, 64px);
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 7.4vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--title);
  text-wrap: balance;
}

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

.page-home .home-hero__lede {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--body);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 30px);
}

.page-home .home-hero__status {
  display: grid;
  gap: 16px;
}

.page-home .home-status {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
}

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

.page-home .home-status__bar {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(56, 242, 208, 0.22) 52%, var(--gold) 100%);
}

.page-home .home-status__rows {
  margin: 0;
  display: grid;
}

.page-home .home-status__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-status__row:last-child {
  border-bottom: 0;
}

.page-home .home-status__row dt {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.page-home .home-status__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--title);
  letter-spacing: 0.01em;
}

.page-home .home-status__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

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

.page-home .home-hero__fig .fig__media {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1200 / 720;
  background: var(--panel);
}

.page-home .home-hero__fig .fig__media img {
  height: 100%;
}

/* ---------- 章节索引条 ---------- */
.page-home .home-index {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(13, 31, 54, 0.5);
}

.page-home .home-index__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line-soft);
}

.page-home .home-index__item {
  background: var(--ink);
}

.page-home .home-index__link {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 13px clamp(14px, 3vw, 22px);
  font-size: 13px;
  color: var(--body);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-home .home-index__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  color: var(--title);
  background: var(--panel-hi);
}

/* ---------- 通用章节头 ---------- */
.page-home .home-paths__head,
.page-home .home-stats__head {
  max-width: 46em;
  margin-bottom: clamp(22px, 4vw, 38px);
}

.page-home .home-paths__title,
.page-home .home-versions__title,
.page-home .home-split__title,
.page-home .home-stats__title,
.page-home .home-contact__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.2vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--title);
}

.page-home .home-paths__lede,
.page-home .home-stats__lede {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- 三条上手路径 ---------- */
.page-home .home-paths {
  padding-block: clamp(36px, 6vw, 76px);
}

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

.page-home .home-paths__item {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(175deg, var(--panel) 0%, rgba(13, 31, 54, 0.35) 100%);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .home-paths__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(20px, 3vw, 28px);
  width: 46px;
  height: 2px;
}

.page-home .home-paths__item--download::before {
  background: var(--cyan);
}

.page-home .home-paths__item--login::before {
  background: var(--orange);
}

.page-home .home-paths__item--guide::before {
  background: var(--gold);
}

.page-home .home-paths__item:hover,
.page-home .home-paths__item:focus-within {
  transform: translateY(-3px);
  border-color: rgba(56, 242, 208, 0.45);
}

.page-home .home-paths__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .home-paths__name {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--title);
}

.page-home .home-paths__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--body);
}

.page-home .home-paths__link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 242, 208, 0.35);
  padding-bottom: 2px;
}

.page-home .home-paths__link:hover,
.page-home .home-paths__link:focus-visible {
  color: var(--title);
  border-bottom-color: var(--title);
}

/* ---------- 宽幅分隔 ---------- */
.page-home .home-band {
  position: relative;
  margin: 0;
  border-block: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-home .home-band .fig__media {
  aspect-ratio: 1200 / 400;
  background: var(--ink-deep);
}

.page-home .home-band .fig__media img {
  height: 100%;
  opacity: 0.9;
}

.page-home .home-band__note {
  position: absolute;
  left: clamp(18px, 4vw, 44px);
  bottom: clamp(14px, 3vw, 26px);
  right: clamp(18px, 4vw, 44px);
  max-width: 30em;
  padding: 12px 16px;
  border-left: 2px solid var(--orange);
  background: linear-gradient(90deg, rgba(4, 13, 25, 0.92), rgba(4, 13, 25, 0.45));
  font-size: 13px;
  line-height: 1.7;
  color: var(--body);
}

.page-home .home-band__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 4px;
}

/* ---------- 版本索引 ---------- */
.page-home .home-versions {
  padding-block: clamp(38px, 6vw, 80px);
}

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

.page-home .home-versions__text {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--body);
}

.page-home .home-versions__fig {
  margin: clamp(20px, 3vw, 28px) 0 0;
}

.page-home .home-versions__fig .fig__media {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 900 / 600;
}

.page-home .home-versions__fig .fig__media img {
  height: 100%;
}

.page-home .home-ver__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-ver__row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-ver__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.page-home .home-ver__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--title);
}

.page-home .home-ver__size {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--body);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.page-home .home-ver__row.is-export {
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(242, 196, 107, 0.13), transparent 72%);
}

.page-home .home-versions__more {
  margin-top: clamp(18px, 3vw, 26px);
}

/* ---------- 分流面板 ---------- */
.page-home .home-split {
  padding-block: clamp(36px, 6vw, 76px);
}

.page-home .home-split__head {
  margin-bottom: clamp(20px, 3.5vw, 34px);
}

.page-home .home-split__grid {
  display: grid;
  gap: 18px;
}

.page-home .home-split__card {
  position: relative;
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid var(--line);
  background: linear-gradient(158deg, var(--panel-hi) 0%, var(--panel) 62%, var(--ink) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .home-split__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: var(--home-cut);
  width: 3px;
}

.page-home .home-split__card--user::before {
  background: linear-gradient(180deg, var(--cyan), rgba(56, 242, 208, 0.12));
}

.page-home .home-split__card--guide::before {
  background: linear-gradient(180deg, var(--orange), rgba(255, 122, 47, 0.12));
}

.page-home .home-split__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--title);
}

.page-home .home-split__text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--body);
}

.page-home .home-split__link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 242, 208, 0.35);
  padding-bottom: 2px;
}

.page-home .home-split__link:hover,
.page-home .home-split__link:focus-visible {
  color: var(--title);
  border-bottom-color: var(--title);
}

.page-home .home-split__fig {
  margin: clamp(18px, 3vw, 24px) 0 0;
}

.page-home .home-split__fig .fig__media {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-deep);
  aspect-ratio: 800 / 500;
}

.page-home .home-split__fig .fig__media img {
  height: 100%;
}

/* ---------- 折叠组 ---------- */
.page-home .home-fold {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.page-home .home-fold__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--title);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.page-home .home-fold__btn::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--cyan);
}

.page-home .home-fold__btn[aria-expanded="true"]::before {
  content: "−";
}

.page-home .home-fold__btn:hover,
.page-home .home-fold__btn:focus-visible {
  color: var(--cyan);
}

.page-home .home-fold__body {
  margin-top: 12px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.page-home .home-fold__list {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
}

.page-home .home-fold__list li {
  position: relative;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--body);
}

.page-home .home-fold__list li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 16px;
  width: 6px;
  height: 1px;
  background: var(--cyan);
}

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

/* ---------- 运营仪表板 ---------- */
.page-home .home-stats {
  padding-block: clamp(36px, 6vw, 76px);
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(80% 60% at 84% 0%, rgba(56, 242, 208, 0.09), transparent 60%),
    rgba(13, 31, 54, 0.42);
}

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

.page-home .home-stat {
  padding: clamp(16px, 2.6vw, 24px);
  background: var(--ink);
}

.page-home .home-stat__label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .home-stat__num {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 4.4vw, 2.5rem);
  line-height: 1;
  color: var(--title);
  letter-spacing: -0.02em;
}

.page-home .home-stat__num em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  margin-left: 6px;
}

.page-home .home-stat:nth-child(3) .home-stat__num {
  color: var(--cyan);
}

.page-home .home-stat:nth-child(8) .home-stat__num {
  color: var(--gold);
}

/* ---------- 信任与联系 ---------- */
.page-home .home-contact {
  padding-block: clamp(38px, 6vw, 80px);
}

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

.page-home .home-contact__text {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--body);
  max-width: 40em;
}

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

.page-home .home-contact__list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--body);
}

.page-home .home-contact__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}

.page-home .home-contact__link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 242, 208, 0.35);
  padding-bottom: 2px;
}

.page-home .home-contact__link:hover,
.page-home .home-contact__link:focus-visible {
  color: var(--title);
  border-bottom-color: var(--title);
}

.page-home .home-contact__card {
  padding: clamp(20px, 3vw, 30px);
}

.page-home .home-contact__cardTitle {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 700;
  color: var(--title);
}

.page-home .home-contact__rows {
  margin: 12px 0 0;
  display: grid;
}

.page-home .home-contact__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-contact__row:last-child {
  border-bottom: 0;
}

.page-home .home-contact__row dt {
  font-size: 12px;
  color: var(--muted);
}

.page-home .home-contact__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--title);
  word-break: break-word;
}

.page-home .home-contact__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

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

.page-home .home-contact__icp {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

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

  .page-home .home-ver__row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding-inline: 16px;
  }
}

@media (min-width: 860px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
  }

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

  .page-home .home-paths__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 26px;
  }

  .page-home .home-paths__item:nth-child(2) {
    transform: translateY(26px);
  }

  .page-home .home-paths__item:nth-child(2):hover,
  .page-home .home-paths__item:nth-child(2):focus-within {
    transform: translateY(23px);
  }

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

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

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

  .page-home .home-split__grid {
    gap: 26px;
  }
}

@media (max-width: 599px) {
  .page-home .home-ver__row {
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
  }

  .page-home .home-ver__size {
    grid-column: 2;
    white-space: normal;
  }

  .page-home .home-band__note {
    position: static;
    max-width: none;
    margin: 0;
    border-left-width: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-paths__item,
  .page-home .home-paths__item:nth-child(2) {
    transform: none;
    transition: none;
  }

  .page-home .home-paths__item:hover,
  .page-home .home-paths__item:focus-within {
    transform: none;
  }
}
