.install-info img { max-width: 100%; height: auto; }

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  align-items: center;
  justify-content: center;
}
#lightbox .lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 25, 0.72);
}
#lightbox .lightbox-img {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 960px);
  max-height: 86vh;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
#lightbox .lightbox-close,
#lightbox .lightbox-arrow {
  position: absolute;
  z-index: 3;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #0f1e19;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.4rem;
  cursor: pointer;
}
#lightbox .lightbox-close { top: 1rem; right: 1rem; }
#lightbox .lightbox-arrow.prev { left: 1rem; top: 50%; transform: translateY(-50%); }
#lightbox .lightbox-arrow.next { right: 1rem; top: 50%; transform: translateY(-50%); }

.hero-preview-thumb {
  transition: transform 0.2s ease;
}
.hero-title-suffix {
  font-style: normal;
}
.lift-card:hover .hero-preview-thumb {
  transform: scale(1.04);
}

.hero-orbit {
  max-width: 360px;
}
.hero-orbit-slot {
  position: absolute;
}
.hero-orbit-slot--lg {
  width: 104px;
  height: 104px;
}
.hero-orbit-slot--md {
  width: 88px;
  height: 88px;
}
.hero-orbit-slot--1 { left: 8%; top: 6%; }
.hero-orbit-slot--2 { right: 4%; top: 18%; }
.hero-orbit-slot--3 { left: 2%; bottom: 16%; }
.hero-orbit-slot--4 { right: 6%; bottom: 4%; }

/* 移动端三列卡片 */
.cards-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.cards-row-3 .step-card {
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.45rem;
  text-align: center;
}
.cards-row-3 .step-card .icon-pop {
  width: 1.75rem;
  height: 1.75rem;
}
.cards-row-3 .step-card .icon-pop svg {
  width: 14px;
  height: 14px;
}
.cards-row-3 .step-card .font-mono {
  font-size: 8px;
  line-height: 1.2;
}
.cards-row-3 .step-card .font-semibold {
  margin-top: 0.15rem;
  font-size: 11px;
  line-height: 1.25;
}
.cards-row-3 .step-card p {
  margin-top: 0.2rem;
  font-size: 9.5px;
  line-height: 1.35;
}

.cards-row-3 .feature-card {
  padding: 0.65rem 0.5rem;
}
.cards-row-3 .feature-card .icon-pop {
  width: 1.85rem;
  height: 1.85rem;
}
.cards-row-3 .feature-card .icon-pop svg {
  width: 15px;
  height: 15px;
}
.cards-row-3 .feature-card h3 {
  margin-top: 0.45rem !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.cards-row-3 .feature-card p {
  margin-top: 0.3rem !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}

/* 工作流：移动端 2 列，桌面 4 列 */
.cards-row-workflow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.cards-row-workflow article {
  padding: 0.75rem 0.55rem !important;
}
.cards-row-workflow article h3 {
  margin-top: 0.5rem !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}
.cards-row-workflow article p {
  margin-top: 0.35rem !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}
.cards-row-workflow .icon-pop {
  width: 1.85rem !important;
  height: 1.85rem !important;
}
.cards-row-workflow .icon-pop svg {
  width: 15px;
  height: 15px;
}
.cards-row-workflow .font-mono {
  font-size: 8px;
}

@media (min-width: 640px) {
  .cards-row-3 {
    gap: 0.75rem;
  }
  .cards-row-3 .step-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    text-align: left;
  }
  .cards-row-3 .step-card .icon-pop {
    width: 2.5rem;
    height: 2.5rem;
  }
  .cards-row-3 .step-card .icon-pop svg {
    width: 20px;
    height: 20px;
  }
  .cards-row-3 .step-card .font-mono {
    font-size: 10.5px;
  }
  .cards-row-3 .step-card .font-semibold {
    margin-top: 0.25rem;
    font-size: 14px;
  }
  .cards-row-3 .step-card p {
    margin-top: 0.375rem;
    font-size: 12.5px;
    line-height: 1.625;
  }
}

@media (min-width: 768px) {
  .cards-row-3 {
    gap: 1.25rem;
  }
  .cards-row-3 .feature-card {
    padding: 1.75rem;
  }
  .cards-row-3 .feature-card .icon-pop {
    width: 2.75rem;
    height: 2.75rem;
  }
  .cards-row-3 .feature-card .icon-pop svg {
    width: 22px;
    height: 22px;
  }
  .cards-row-3 .feature-card h3 {
    margin-top: 1.25rem !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
  }
  .cards-row-3 .feature-card p {
    margin-top: 0.5rem !important;
    font-size: 14px !important;
    line-height: 1.625 !important;
  }
  .cards-row-workflow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .cards-row-workflow article {
    padding: 1.5rem !important;
  }
  .cards-row-workflow article h3 {
    margin-top: 1.5rem !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
  }
  .cards-row-workflow article p {
    margin-top: 0.625rem !important;
    font-size: 13px !important;
    line-height: 1.625 !important;
  }
  .cards-row-workflow .icon-pop {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
  .cards-row-workflow .icon-pop svg {
    width: 20px;
    height: 20px;
  }
  .cards-row-workflow .font-mono {
    font-size: 10.5px;
  }
}

@media (min-width: 640px) {
  .hero-orbit { max-width: 420px; }
  .hero-orbit-slot--lg { width: 116px; height: 116px; }
  .hero-orbit-slot--md { width: 96px; height: 96px; }
}

@media (min-width: 768px) {
  .hero-orbit { max-width: 500px; }
  .hero-orbit-slot--lg { width: 128px; height: 128px; }
  .hero-orbit-slot--md { width: 104px; height: 104px; }
}

#backToTop {
  display: none;
  z-index: 100;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
#backToTop.is-visible {
  display: inline-flex;
}
#backToTop:hover {
  border-color: #0ea5e9;
  box-shadow: 0 10px 28px -12px rgba(14, 165, 233, 0.45);
  transform: translateY(-2px);
}
