.page-home {
  --home-pad: clamp(20px, 4vw, 56px);
  --home-gap: clamp(16px, 3vw, 40px);
  --home-band: clamp(44px, 7vw, 96px);
  display: block;
  position: relative;
  background: var(--obsidian);
  color: var(--text);
  overflow-x: clip;
}

.page-home .home-hero,
.page-home .home-cats,
.page-home .home-save,
.page-home .home-paths,
.page-home .home-updates,
.page-home .home-trust {
  padding-block: var(--home-band);
}

.page-home .breadcrumbs {
  margin-bottom: clamp(14px, 2vw, 22px);
}

/* ---------- 首屏框景 ---------- */

.page-home .home-hero {
  padding-top: clamp(18px, 3vw, 34px);
}

.page-home .home-hero__frame {
  position: relative;
  border: 1px solid var(--line-gold);
  background:
    radial-gradient(120% 92% at 88% 2%, rgba(53, 224, 208, 0.16), transparent 58%),
    radial-gradient(94% 82% at 4% 98%, rgba(212, 166, 74, 0.15), transparent 62%),
    linear-gradient(170deg, var(--ink) 0%, var(--ink-deep) 100%);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.page-home .home-hero__frame::before,
.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  left: var(--home-pad);
  right: var(--home-pad);
  height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 22px);
  opacity: 0.5;
  pointer-events: none;
}

.page-home .home-hero__frame::before { top: 16px; }
.page-home .home-hero__frame::after { bottom: 16px; }

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  padding: clamp(30px, 5vw, 64px) var(--home-pad) clamp(26px, 4vw, 56px);
}

.page-home .home-hero__label {
  color: var(--cyan);
  margin: 0 0 14px;
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(30px, 6.4vw, 62px);
  color: var(--text);
  max-width: 15ch;
}

.page-home .home-hero__lede {
  margin: 20px 0 0;
  max-width: 40ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-hero__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--ink-deep);
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(10, 15, 13, 0.88) 0%,
    rgba(10, 15, 13, 0.32) 48%,
    rgba(21, 64, 53, 0.2) 100%
  );
  pointer-events: none;
}

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

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-home .home-hero__primary {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.page-home .home-hero__sub {
  border-color: rgba(212, 166, 74, 0.28);
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    grid-template-rows: auto auto;
    gap: 30px clamp(28px, 4vw, 56px);
    align-items: end;
  }

  .page-home .home-hero__copy {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .page-home .home-hero__media {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 340px;
  }

  .page-home .home-hero__actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-end;
    padding-bottom: 6px;
  }

  .page-home .home-hero__sub:nth-of-type(2) { transform: translate(12px, -10px); }
  .page-home .home-hero__sub:nth-of-type(3) { transform: translate(24px, -20px); }
}

/* ---------- 分类斜向索引 ---------- */

.page-home .home-cats {
  background:
    linear-gradient(180deg, var(--obsidian) 0%, var(--ink) 100%);
}

.page-home .home-cats__list {
  position: relative;
  list-style: none;
  margin: clamp(26px, 4vw, 46px) 0 0;
  padding: 0 0 0 clamp(16px, 3vw, 34px);
  display: grid;
  gap: clamp(10px, 1.2vw, 14px);
}

.page-home .home-cats__list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(212, 166, 74, 0) 0%,
    rgba(212, 166, 74, 0.72) 12%,
    rgba(212, 166, 74, 0.72) 88%,
    rgba(212, 166, 74, 0) 100%
  );
}

.page-home .home-cats__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid rgba(212, 166, 74, 0.5);
  background: linear-gradient(96deg, rgba(21, 64, 53, 0.8), rgba(15, 42, 34, 0.34));
  color: var(--text);
  text-decoration: none;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.page-home .home-cats__link:hover,
.page-home .home-cats__link:focus-visible {
  transform: translateX(6px);
  border-left-color: var(--gold);
  background: linear-gradient(96deg, rgba(21, 64, 53, 0.96), rgba(15, 42, 34, 0.5));
}

.page-home .home-cats__num {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-home .home-cats__name {
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .home-cats__tags {
  font-size: 13px;
  color: var(--mist);
  white-space: nowrap;
}

.page-home .home-cats__tags b {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--cyan);
  margin-right: 2px;
}

@media (min-width: 760px) {
  .page-home .home-cats__item:nth-child(even) {
    margin-left: clamp(24px, 7vw, 96px);
  }
}

/* ---------- 通栏光带 ---------- */

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

.page-home .home-band__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 7 / 3;
  object-fit: cover;
}

.page-home .home-band .media__caption {
  padding: 14px var(--home-pad) 0;
  font-size: 13px;
  color: var(--mist);
}

/* ---------- 收藏夹 ---------- */

.page-home .home-save {
  background: var(--paper);
  color: var(--ink);
}

.page-home .home-save .label {
  color: var(--ink-lift);
}

.page-home .home-save__grid {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.page-home .home-save__media {
  margin: 0;
  border: 1px solid rgba(15, 42, 34, 0.18);
  background: var(--ink);
  overflow: hidden;
}

.page-home .home-save__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 9 / 11;
  object-fit: cover;
}

.page-home .home-save__title {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-size: clamp(26px, 4.4vw, 44px);
  color: var(--ink);
}

.page-home .home-save__text {
  margin: 18px 0 0;
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-lift);
}

.page-home .home-save__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-save__point {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 42, 34, 0.16);
}

.page-home .home-save__point-num {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

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

.page-home .home-save__cta {
  margin-top: 28px;
}

@media (min-width: 860px) {
  .page-home .home-save__grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(32px, 5vw, 72px);
  }
}

/* ---------- 两条动线 ---------- */

.page-home .home-paths {
  background:
    radial-gradient(100% 70% at 100% 0%, rgba(255, 107, 74, 0.09), transparent 60%),
    var(--obsidian);
}

.page-home .home-paths__grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  margin-top: clamp(26px, 4vw, 46px);
}

.page-home .home-paths__card {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: linear-gradient(164deg, var(--ink-lift) 0%, var(--ink) 62%, var(--ink-deep) 100%);
}

.page-home .home-paths__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 3px;
  background: var(--cyan);
}

.page-home .home-paths__tag {
  color: var(--cyan);
  margin: 0;
}

.page-home .home-paths__card-title {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-size: clamp(19px, 2.6vw, 26px);
  color: var(--text);
}

.page-home .home-paths__steps {
  margin: 22px 0 0;
}

.page-home .home-paths__link {
  margin-top: 26px;
}

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

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

/* ---------- 版本节奏 ---------- */

.page-home .home-updates {
  background: linear-gradient(180deg, var(--ink-deep) 0%, var(--obsidian) 100%);
}

.page-home .home-updates__grid {
  display: grid;
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.page-home .home-updates__title {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.16;
  font-size: clamp(26px, 4.4vw, 44px);
  color: var(--text);
}

.page-home .home-updates__text {
  margin: 18px 0 0;
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .home-updates__tl {
  list-style: none;
  margin: 30px 0 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--line-gold);
  display: grid;
  gap: 20px;
}

.page-home .home-updates__tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 2px 14px;
}

.page-home .home-updates__tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.page-home .home-updates__ver {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.page-home .home-updates__when {
  font-size: 13px;
  color: var(--coral);
  letter-spacing: 0.06em;
}

.page-home .home-updates__what {
  grid-column: 2;
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .home-updates__link {
  margin-top: 30px;
}

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

.page-home .home-updates__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 900px) {
  .page-home .home-updates__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }
}

/* ---------- 服务与备案 ---------- */

.page-home .home-trust {
  background: var(--obsidian);
  padding-bottom: clamp(56px, 8vw, 120px);
}

.page-home .home-trust__frame {
  position: relative;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--line-gold);
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(212, 166, 74, 0.12), transparent 58%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% 100%,
    0 100%,
    0 var(--cut)
  );
}

.page-home .home-trust__grid {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

.page-home .home-trust__title {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.16;
  font-size: clamp(25px, 4vw, 40px);
  color: var(--text);
  max-width: 18ch;
}

.page-home .home-trust__text {
  margin: 18px 0 0;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
}

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

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

.page-home .home-trust__fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--slate);
}

.page-home .home-trust__fact:first-child {
  border-top: 1px solid var(--slate);
}

.page-home .home-trust__fact dt {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .home-trust__fact dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  word-break: break-word;
}

.page-home .home-trust__foot {
  margin: clamp(26px, 3vw, 40px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--slate);
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist);
}

.page-home .home-trust__link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 208, 0.4);
}

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

@media (min-width: 900px) {
  .page-home .home-trust__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  }
}

@media (max-width: 420px) {
  .page-home .home-cats__num {
    display: none;
  }

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

  .page-home .home-hero__actions .btn {
    width: 100%;
  }

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

  .page-home .home-updates__what {
    grid-column: 1;
  }
}

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