.page-home {
  --home-cut: 28px;
  --home-progress-width: 88%;
  background-color: var(--color-deep-space);
  color: var(--color-ice);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ============ Hero 框景首屏 ============ */
.page-home .hero {
  position: relative;
  margin: 0 auto 48px;
  padding: 56px 20px 88px;
  background-color: var(--color-midnight);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), 0 100%);
}

.page-home .hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-home .hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(11, 15, 28, 0.95) 0%, rgba(16, 24, 48, 0.82) 45%, rgba(44, 58, 94, 0.4) 100%);
  pointer-events: none;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 58, 94, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 58, 94, 0.28) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.page-home .hero__pane {
  position: relative;
  z-index: 2;
  display: flex;
  flex-flow: column nowrap;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-home .hero__content {
  flex: 1 1 auto;
  min-width: 0;
}

.page-home .hero__content::before {
  content: "";
  display: block;
  width: 88px;
  height: 5px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--color-green), var(--color-orange));
  box-shadow: 0 0 18px rgba(198, 255, 0, 0.35);
}

.page-home .hero__desc {
  max-width: 680px;
  margin: 18px 0 28px;
  font-size: 15px;
  color: rgba(242, 244, 248, 0.88);
}

.page-home .hero__desc strong,
.page-home .cta-download strong {
  color: var(--color-green);
  font-weight: 700;
}

.page-home .hero__progress {
  max-width: 560px;
  margin-bottom: 30px;
  padding: 18px 18px 14px;
  background-color: rgba(16, 24, 48, 0.88);
  border-left: 4px solid var(--color-green);
  box-shadow: 10px 10px 0 0 rgba(0, 0, 0, 0.22);
}

.page-home .match-head {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.page-home .match-head__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-ice);
}

.page-home .match-head__round {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-deep-space);
  background-color: var(--color-green);
  padding: 3px 12px;
  letter-spacing: 0.04em;
}

.page-home .hero__progress .progress {
  height: 10px;
  background-color: var(--color-steel);
}

.page-home .hero__progress .progress__fill {
  height: 100%;
  width: 0;
  background-image: linear-gradient(90deg, var(--color-green), #d4ff52);
  animation: pageHomeProgressFill 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

@keyframes pageHomeProgressFill {
  from {
    width: 0;
  }
  to {
    width: var(--home-progress-width);
  }
}

.page-home .match-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--color-muted);
}

.page-home .hero__actions {
  display: flex;
  flex-flow: row wrap;
  gap: 12px;
}

.page-home .hero__actions .btn,
.page-home .cta-download__actions .btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
}

/* ============ Hero Rail 侧边导航 ============ */
.page-home .hero__rail {
  display: flex;
  flex-flow: row wrap;
  gap: 4px 18px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(44, 58, 94, 0.6);
}

.page-home .hero__rail-link {
  position: relative;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.page-home .hero__rail-link::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background-color: var(--color-muted);
  transform: skewX(-20deg);
  transition: background-color 0.2s ease;
}

.page-home .hero__rail-link:hover,
.page-home .hero__rail-link:focus {
  color: var(--color-green);
  transform: translateX(2px);
}

.page-home .hero__rail-link:hover::before,
.page-home .hero__rail-link:focus::before {
  background-color: var(--color-green);
}

/* ============ 核心功能矩阵 ============ */
.page-home .capabilities {
  padding: 60px 20px 72px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-home .capabilities__head {
  margin-bottom: 40px;
}

.page-home .capabilities__lead {
  max-width: 400px;
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 15px;
}

.page-home .cap-grid {
  display: flex;
  flex-flow: column nowrap;
  gap: 22px;
}

.page-home .cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  background-color: var(--color-midnight);
  border: 1px solid var(--color-steel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-home .cap-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 50%, rgba(198, 255, 0, 0.18) 50%);
  pointer-events: none;
}

.page-home .cap-card:hover,
.page-home .cap-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(198, 255, 0, 0.65);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3), 12px 12px 0 0 rgba(198, 255, 0, 0.08);
}

.page-home .cap-card__icon {
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  overflow: hidden;
  background-color: var(--color-deep-space);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 0 100%);
}

.page-home .cap-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-home .cap-card:hover .cap-card__icon img,
.page-home .cap-card:focus-within .cap-card__icon img {
  transform: scale(1.06);
}

.page-home .cap-card .tag {
  align-self: flex-start;
  margin-bottom: 8px;
}

.page-home .cap-card h3 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
}

.page-home .cap-card p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--color-muted);
}

.page-home .cap-card .link-arrow {
  margin-top: auto;
  color: var(--color-green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ============ 适配说明 ============ */
.page-home .adaptation {
  padding: 64px 20px;
  background-color: var(--color-deep-space);
  border-top: 1px solid var(--color-steel);
  border-bottom: 1px solid var(--color-steel);
}

.page-home .adaptation__grid {
  display: grid;
  gap: 36px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-home .adaptation__content p {
  color: var(--color-muted);
  font-size: 15px;
  margin-top: 14px;
}

.page-home .adaptation__note {
  display: block;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--color-orange);
}

.page-home .adaptation__demo {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 36px;
  padding: 28px 20px;
  background-color: rgba(16, 24, 48, 0.72);
  border: 1px solid var(--color-steel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%);
}

.page-home .ad-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.page-home .ad-screen__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.page-home .ad-screen__body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-green);
  background: linear-gradient(145deg, var(--color-deep-space), var(--color-midnight));
  border: 2px solid var(--color-steel);
  border-left-width: 5px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .ad-screen:hover .ad-screen__body {
  transform: translateY(-4px);
}

.page-home .ad-screen__body--fold {
  width: 190px;
  height: 132px;
  border-left-color: var(--color-green);
}

.page-home .ad-screen__body--narrow {
  width: 62px;
  height: 132px;
  border-left-color: var(--color-orange);
  color: var(--color-orange);
}

/* ============ 最新动态 ============ */
.page-home .insights {
  padding: 64px 20px 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-home .insights__head {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 32px;
}

.page-home .insight-item {
  display: grid;
  gap: 10px 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-steel);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.page-home .insight-item:hover,
.page-home .insight-item:focus-within {
  background-color: rgba(198, 255, 0, 0.04);
  padding-left: 14px;
}

.page-home .insight-item__meta {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 12px;
}

.page-home .insight-item__ver {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.page-home .insight-item h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.45;
}

.page-home .insight-item p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--color-muted);
}

.page-home .insight-item .link-arrow {
  justify-self: start;
  color: var(--color-green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ============ 服务下载入口 ============ */
.page-home .cta-download {
  padding: 72px 20px;
}

.page-home .cta-download__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 38px 26px;
  background:
    linear-gradient(110deg, rgba(255, 108, 44, 0.14), rgba(16, 24, 48, 0.92)),
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 108, 44, 0.04) 12px 24px);
  border: 1px solid var(--color-orange);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: box-shadow 0.25s ease;
}

.page-home .cta-download__inner:hover {
  box-shadow: 0 0 34px rgba(255, 108, 44, 0.18);
}

.page-home .cta-download__inner p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 15px;
}

.page-home .cta-download__actions {
  display: flex;
  flex-flow: row wrap;
  gap: 14px;
  margin-top: 24px;
}

/* ============ 桌面端适配 ============ */
@media (min-width: 700px) {
  .page-home .hero {
    padding-top: 72px;
    padding-bottom: 110px;
  }

  .page-home .hero__pane {
    flex-flow: row nowrap;
    gap: 32px;
  }

  .page-home .hero__rail {
    flex: 0 0 auto;
    flex-flow: column nowrap;
    align-items: flex-start;
    width: 68px;
    margin: 88px 0 0 0;
    padding: 0 0 20px;
    border-bottom: 0;
    border-left: 1px solid var(--color-steel);
  }

  .page-home .hero__rail-link {
    padding: 8px 0 8px 16px;
  }

  .page-home .hero__rail-link::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) skewX(-20deg);
  }

  .page-home .hero__rail-link:hover,
  .page-home .hero__rail-link:focus {
    transform: translateX(3px);
  }

  .page-home .hero__content {
    max-width: 860px;
  }

  .page-home .hero__desc {
    font-size: 16px;
  }

  .page-home .cap-grid {
    flex-flow: row nowrap;
    align-items: flex-start;
    gap: 28px;
  }

  .page-home .cap-card {
    flex: 1 1 0;
  }

  .page-home .cap-card:nth-child(2) {
    margin-top: 36px;
  }

  .page-home .cap-card:nth-child(3) {
    margin-top: 18px;
  }

  .page-home .adaptation__grid {
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
  }

  .page-home .insight-item {
    grid-template-columns: 180px 1fr auto;
    align-items: baseline;
  }

  .page-home .insight-item .link-arrow {
    justify-self: end;
  }
}

@media (min-width: 1024px) {
  .page-home .hero {
    min-height: 620px;
  }

  .page-home .hero__pane {
    align-items: flex-start;
  }

  .page-home .hero__content {
    padding-top: 12px;
  }

  .page-home .type-display {
    font-size: clamp(2.6rem, 4.2vw, 4.2rem);
  }

  .page-home .cta-download__inner {
    padding: 48px 42px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 42px;
  }

  .page-home .cta-download__actions {
    margin-top: 0;
  }
}
