.page-home {
  --home-grid-line: rgba(126, 166, 208, 0.07);
  --home-panel: rgba(13, 27, 44, 0.55);
  --home-panel-strong: rgba(19, 37, 56, 0.92);
  background-color: var(--ink-950);
  background-image:
    linear-gradient(to right, var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
}

.page-home .home-crumb {
  padding-top: clamp(14px, 2vw, 22px);
}

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

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: clip;
  padding: clamp(20px, 3vw, 34px) 0 clamp(40px, 6vw, 84px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% 30% -20%;
  background: radial-gradient(closest-side, var(--orange-soft), transparent 72%);
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.page-home .home-hero__copy .display-title {
  margin: 14px 0 18px;
}

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

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

.page-home .home-hero__marks li {
  padding: 0 14px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-home .home-hero__marks li:first-child {
  padding-left: 0;
  border-left: 0;
}

.page-home .home-hero__visual {
  position: relative;
  padding: clamp(12px, 2.4vw, 22px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(158deg, var(--home-panel-strong), rgba(5, 11, 20, 0.94));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.page-home .home-hero__visual svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.page-home .home-hero__tag {
  position: absolute;
  right: 20px;
  bottom: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--jade);
}

/* ---------- 章节通用微调 ---------- */
.page-home .section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- 安装路径 ---------- */
.page-home .home-path__layout {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.page-home .home-path__timeline {
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-path__timeline li {
  position: relative;
  padding: 0 0 clamp(20px, 3vw, 28px) 42px;
}

.page-home .home-path__timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.page-home .home-path__timeline li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.page-home .home-path__timeline li:last-child::after {
  display: none;
}

.page-home .home-step {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--orange-hi);
}

.page-home .home-path__step-title {
  margin: 0 0 6px;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .home-path__step-text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-path__figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--home-panel);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.page-home .home-path__figure .figure__caption {
  padding: 0 16px 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 版本对照 ---------- */
.page-home .home-compare__layout {
  display: grid;
  gap: clamp(22px, 3.4vw, 40px);
  margin-top: clamp(20px, 3vw, 32px);
  align-items: start;
}

.page-home .home-compare__table {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--home-panel);
}

.page-home .home-compare__table .compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.page-home .home-compare__table .compare th,
.page-home .home-compare__table .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.65;
}

.page-home .home-compare__table .compare thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: rgba(19, 37, 56, 0.7);
  white-space: nowrap;
}

.page-home .home-compare__table .compare thead th:nth-child(2) {
  color: var(--orange-hi);
}

.page-home .home-compare__table .compare tbody th {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--paper);
  white-space: nowrap;
}

.page-home .home-compare__table .compare tbody td {
  color: var(--text);
}

.page-home .home-compare__table .compare tbody td:nth-child(2) {
  color: var(--jade);
}

.page-home .home-compare__table .compare tbody tr:last-child th,
.page-home .home-compare__table .compare tbody tr:last-child td {
  border-bottom: 0;
}

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

.page-home .home-compare__figure .figure__caption {
  padding: 0 16px 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 更新公告 ---------- */
.page-home .home-notice__panel {
  position: relative;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, var(--home-panel-strong), rgba(8, 17, 29, 0.97));
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}

.page-home .home-notice__list {
  display: grid;
  gap: 14px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-notice__list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px dashed var(--line);
}

.page-home .home-notice__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-notice__no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-home .home-notice__text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text);
}

.page-home .home-notice__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(22px, 3.4vw, 34px) 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-notice__stats .stat {
  padding: 16px 14px;
  background: rgba(8, 17, 29, 0.92);
}

.page-home .home-notice__stats .stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  color: var(--jade);
}

.page-home .home-notice__stats .stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .home-notice__figure {
  margin: clamp(24px, 3.4vw, 34px) 0 0;
  border: 1px solid var(--line);
}

.page-home .home-notice__figure .figure__caption {
  padding: 0 16px 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 站内索引 ---------- */
.page-home .home-index__card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-home .home-index__card .card__text {
  margin-bottom: 12px;
}

.page-home .home-index__more {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--orange);
  transition: color 0.25s var(--ease);
}

.page-home .home-index__card:hover .home-index__more,
.page-home .home-index__card:focus-visible .home-index__more {
  color: var(--jade);
}

.page-home .home-index__card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- 适用场景 ---------- */
.page-home .home-scene__layout {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.page-home .home-scene__list {
  margin-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--line);
}

.page-home .home-scene__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  padding: clamp(16px, 2.6vw, 24px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.page-home .home-scene__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.35s var(--ease);
}

.page-home .home-scene__item:hover::before {
  width: 64px;
}

.page-home .home-scene__no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  padding-top: 3px;
}

.page-home .home-scene__title {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .home-scene__text {
  grid-column: 2;
  margin: 4px 0 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}

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

.page-home .home-scene__figure .figure__caption {
  padding: 0 16px 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 结尾 ---------- */
.page-home .home-cta {
  padding-bottom: clamp(48px, 7vw, 90px);
}

.page-home .home-cta__inner {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--orange);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--jade-soft), transparent 62%),
    linear-gradient(150deg, var(--home-panel-strong), rgba(5, 11, 20, 0.96));
}

.page-home .home-cta__title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .home-cta__text {
  margin: 0;
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.page-home .home-cta__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  word-break: break-word;
}

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

@media (min-width: 820px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  }

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

  .page-home .home-scene__item {
    grid-template-columns: 34px minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: baseline;
  }

  .page-home .home-scene__text {
    grid-column: 3;
    margin-top: 0;
  }
}

@media (min-width: 980px) {
  .page-home .home-compare__layout {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr);
  }

  .page-home .home-scene__layout {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  }
}
