.page-home {
  --home-gap: clamp(18px, 2.4vw, 34px);
  --home-block: clamp(44px, 7vw, 92px);
  overflow-x: clip;
  padding-bottom: clamp(48px, 8vh, 110px);
}

.page-home .breadcrumb {
  margin-top: 20px;
}

.page-home .home-hero {
  position: relative;
  padding: clamp(22px, 3.4vw, 44px) 0 clamp(36px, 5vw, 70px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -6%;
  width: min(52vw, 600px);
  height: min(32vw, 320px);
  background: linear-gradient(120deg, rgba(255, 59, 47, .17), rgba(46, 125, 255, .15));
  clip-path: polygon(18% 0, 100% 0, 100% 76%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero > .container {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 6.4vw, 4.4rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 17ch;
  color: var(--silver);
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--blue);
}

.page-home .home-hero__sub {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.78;
  color: var(--slate);
}

.page-home .home-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  margin-top: clamp(26px, 3.6vw, 46px);
}

@media (min-width: 920px) {
  .page-home .home-split {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
}

/* 入口卡片 */
.page-home .home-entry {
  position: relative;
  padding: clamp(18px, 2.2vw, 30px);
  background: linear-gradient(158deg, var(--graphite) 0%, var(--ink) 68%);
  border: 1px solid var(--line-strong);
}

.page-home .home-entry::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 42%;
  background: var(--red);
}

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

.page-home .home-entry__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-entry__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 8px 0 12px;
  color: var(--silver);
}

.page-home .home-entry__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--silver);
  max-width: 60ch;
}

.page-home .home-entry__facts {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-entry__facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 14px;
  background: var(--ink);
}

.page-home .home-entry__facts .mono {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate);
  text-transform: uppercase;
}

.page-home .home-entry__facts strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--silver);
}

.page-home .home-entry__path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 16px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--blue);
  background: rgba(46, 125, 255, .09);
  font-size: 13px;
  line-height: 1.6;
  color: var(--silver);
}

.page-home .home-entry__path .mono {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--blue);
  text-transform: uppercase;
}

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

/* 右侧索引 */
.page-home .home-index {
  position: relative;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(to bottom, rgba(201, 207, 216, .07) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, rgba(23, 27, 34, .92), rgba(11, 13, 17, .92));
}

.page-home .home-index__visual {
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-index__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.page-home .home-index__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 8px 0 14px;
  color: var(--silver);
}

.page-home .home-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-index__item {
  position: relative;
  padding: 14px 0 16px 46px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.page-home .home-index__item:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.page-home .home-index__num {
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--green);
}

.page-home .home-index__item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--silver);
}

.page-home .home-index__note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--slate);
}

/* 三条动线 */
.page-home .home-lanes {
  list-style: none;
  margin: clamp(26px, 3.6vw, 44px) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.page-home .home-lanes a {
  display: block;
  padding: 20px 18px;
  text-decoration: none;
  color: inherit;
  transition: background .24s var(--ease), padding-left .24s var(--ease);
}

.page-home .home-lanes a:hover,
.page-home .home-lanes a:focus-visible {
  background: var(--graphite);
  padding-left: 26px;
}

.page-home .home-lanes__key {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 8px;
}

.page-home .home-lanes strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--silver);
  margin-bottom: 4px;
}

.page-home .home-lanes a span:last-child {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
}

@media (min-width: 780px) {
  .page-home .home-lanes {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 章节标题组 */
.page-home .home-head {
  max-width: 62ch;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.page-home .home-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  color: var(--silver);
}

.page-home .home-head p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--slate);
}

/* 双栏板块 */
.page-home .home-channels {
  padding: var(--home-block) 0;
}

.page-home .home-channels__rail {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.page-home .home-channel {
  flex: 0 0 78%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
}

.page-home .home-channel--help {
  border-top-color: var(--green);
}

.page-home .home-channel h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--silver);
}

.page-home .home-channel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--slate);
}

.page-home .home-channel__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--slate);
}

@media (min-width: 880px) {
  .page-home .home-channels__rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    overflow: visible;
    padding-bottom: 0;
  }
  .page-home .home-channel {
    flex: none;
    border: 0;
    border-top: 2px solid var(--blue);
  }
  .page-home .home-channel--help {
    border-top-color: var(--green);
  }
}

/* 设备切换 */
.page-home .home-switch {
  padding: var(--home-block) 0;
  border-top: 1px solid var(--line);
}

.page-home .home-switch__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.4vw, 46px);
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .home-switch__grid {
    grid-template-columns: 7fr 5fr;
  }
}

.page-home .home-switch__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  color: var(--silver);
}

.page-home .home-switch__copy > p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--slate);
  max-width: 58ch;
}

.page-home .home-switch__steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: hstep;
}

.page-home .home-switch__steps li {
  position: relative;
  padding: 15px 18px 15px 58px;
  background: var(--ink);
  border-left: 2px solid var(--red-press);
}

.page-home .home-switch__steps li::before {
  counter-increment: hstep;
  content: "0" counter(hstep);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--green);
}

.page-home .home-switch__steps strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--silver);
  margin-bottom: 3px;
}

.page-home .home-switch__steps span {
  font-size: 13px;
  line-height: 1.68;
  color: var(--slate);
}

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

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

.page-home .home-switch__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

/* 版本状态 */
.page-home .home-status {
  padding-bottom: var(--home-block);
}

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

.page-home .home-status__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
}

.page-home .home-status__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  padding: 15px 18px;
  background: var(--umber);
  border-top: 2px solid var(--green);
}

.page-home .home-status__left {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: var(--silver);
}

.page-home .home-status__left strong {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--green);
  font-weight: 600;
}

.page-home .home-status__right {
  margin: 0;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--slate);
}

.page-home .home-status__hist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 16px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-status__hist > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  background: var(--ink);
}

.page-home .home-status__hist dt {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--slate);
  text-transform: uppercase;
}

.page-home .home-status__hist dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver);
}

@media (min-width: 720px) {
  .page-home .home-status__hist {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 分流入口 */
.page-home .home-next {
  padding-top: 0;
}

.page-home .home-next__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-next__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  background: var(--ink);
  text-decoration: none;
  color: inherit;
  border-left: 2px solid transparent;
  transition: background .24s var(--ease), border-color .24s var(--ease);
}

.page-home .home-next__card:hover,
.page-home .home-next__card:focus-visible {
  background: var(--graphite);
  border-left-color: var(--red);
}

.page-home .home-next__num {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--blue);
}

.page-home .home-next__card strong {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--silver);
}

.page-home .home-next__card > span:last-child {
  font-size: 14px;
  line-height: 1.72;
  color: var(--slate);
}

@media (min-width: 820px) {
  .page-home .home-next__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-home .home-next__tail {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--slate);
}

.page-home .home-next__tail a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 125, 255, .45);
  transition: border-color .2s var(--ease);
}

.page-home .home-next__tail a:hover,
.page-home .home-next__tail a:focus-visible {
  border-bottom-color: var(--blue);
}

@media (max-width: 560px) {
  .page-home .home-entry__facts li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .page-home .home-channel {
    flex: 0 0 84%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-lanes a,
  .page-home .home-next__card,
  .page-home .home-next__tail a {
    transition: none;
  }
}
