.home-hero {
  min-height: 900px;
}

.home-hero .hero-preview-copy {
  padding-top: 38px;
}

.home-hero .download-console {
  top: 480px;
}

.hero-platform-strip {
  width: min(100%, 760px);
  margin: 16px auto 0;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(5, minmax(116px, 1fr));
  gap: 6px;
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.hero-platform-item {
  min-height: 43px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-panel);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-platform-item:first-child {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.hero-platform-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.home-workflow {
  align-items: stretch;
}

.workflow-stage {
  min-width: 0;
}

.home-workflow .workflow-canvas {
  height: 100%;
}

.home-workflow .workflow-canvas h3 {
  max-width: 720px;
}

.home-workflow .workflow-canvas p {
  color: var(--color-muted);
}

.workflow-facts {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-download-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.platform-download-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.platform-download-card:nth-child(1),
.platform-download-card:nth-child(2) {
  grid-column: span 3;
}

.platform-download-card:nth-child(n+3) {
  grid-column: span 2;
}

.platform-download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.platform-download-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.platform-download-icon svg {
  width: 27px;
  height: 27px;
}

.platform-download-card h3 {
  font-size: 23px;
}

.platform-download-card p {
  margin-bottom: 22px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.75;
}

.platform-download-card .button {
  width: max-content;
  margin-top: auto;
}

.all-downloads-link,
.all-posts-link {
  margin-top: 28px;
  text-align: right;
}

.home-faq {
  margin-top: clamp(72px, 9vw, 112px);
}

.home-faq .section-heading {
  margin-bottom: 28px;
}

.home-faq .faq-answer a {
  color: var(--color-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.open-source-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 92px);
}

.open-source-layout > div:first-child {
  align-self: start;
  position: sticky;
  top: calc(var(--nav-height) + 28px);
}

.open-source-prose {
  display: grid;
  gap: 12px;
}

.open-source-prose h3 {
  margin-top: 22px;
  margin-bottom: 4px;
  font-size: 22px;
}

.open-source-prose h3:first-child {
  margin-top: 0;
}

.open-source-prose p {
  color: var(--color-muted);
}

.clone-console {
  margin-top: 52px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
}

.clone-console-head {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.clone-console-head h3 {
  margin-bottom: 0;
  font-size: 23px;
}

.clone-console pre {
  margin-bottom: 14px;
}

.copy-command.is-copied {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

@media (max-width: 980px) {
  .home-hero {
    min-height: 930px;
  }

  .home-hero .download-console {
    top: 500px;
  }

  .platform-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-download-card:nth-child(1),
  .platform-download-card:nth-child(2),
  .platform-download-card:nth-child(n+3) {
    grid-column: span 1;
  }

  .platform-download-card:last-child {
    grid-column: 1 / -1;
  }

  .open-source-layout {
    grid-template-columns: 1fr;
  }

  .open-source-layout > div:first-child {
    position: static;
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 1040px;
    padding-bottom: 32px;
  }

  .home-hero .hero-preview-copy {
    padding-top: 30px;
  }

  .hero-platform-strip {
    grid-template-columns: repeat(5, minmax(104px, 1fr));
  }

  .home-hero .download-console {
    width: calc(100% - (var(--gutter) * 2));
    height: auto;
    margin: 32px auto 0;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .home-hero .platform-tabs {
    grid-template-columns: repeat(5, minmax(76px, 1fr));
  }

  .platform-download-grid {
    grid-template-columns: 1fr;
  }

  .platform-download-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 1050px;
  }

  .home-hero .hero-preview-copy {
    padding-top: 24px;
  }

  .home-hero .hero-description {
    margin-top: 14px;
  }

  .hero-platform-strip {
    margin-top: 13px;
    justify-content: start;
  }

  .hero-platform-item {
    min-height: 41px;
  }

  .home-hero .download-console {
    margin-top: 24px;
  }

  .home-hero .platform-tabs {
    grid-template-columns: repeat(5, minmax(74px, 1fr));
  }

  .platform-download-card {
    padding: 22px;
  }

  .platform-download-card .button {
    width: 100%;
  }

  .all-downloads-link,
  .all-posts-link {
    text-align: left;
  }

  .clone-console-head {
    align-items: stretch;
    flex-direction: column;
  }

  .clone-console-head .button {
    width: 100%;
  }
}
/* 2026-08-13 用户拍板「平台按钮统一跳转下载页」:平台条与首屏装置 tab 从死件改真链接 */
a.hero-platform-item, a.platform-tab { color: inherit; text-decoration: none; cursor: pointer; }
