/* ============================================================
   语音合成便携版 — 页面专属样式
   全局样式（变量、导航、reset、footer 等）在 ../global.css
   ============================================================ */

/* ── 页面背景 ── */
body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

/* ── Hero 区域 ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 54px;
  align-items: stretch;
  padding: 22px 0 18px;
}

.hero-copy {
  padding: 10px 0 0;
}

h1 {
  margin: 0;
  max-width: 10.5ch;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.7rem, 6.2vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: #020617;
}

.lead {
  margin: 22px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.12rem);
  line-height: 1.72;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: white;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.btn-disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.82;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  backdrop-filter: blur(14px);
}

/* ── 快速标签 ── */
.quick-facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-facts li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

/* ── 深色 Hero 卡片 ── */
.hero-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.90));
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 480px;
  justify-self: end;
}

.hero-card-top {
  display: flex;
  gap: 8px;
  padding: 18px 18px 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  opacity: 0.9;
}

.dot-green { background: #22c55e; }
.dot-yellow { background: #f59e0b; }
.dot-red { background: #ef4444; }

.hero-card-body {
  padding: 18px;
}

.app-preview {
  height: 100%;
  min-height: 392px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.app-preview-icon {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 30px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
  object-fit: contain;
}

.app-preview-title {
  margin-top: 18px;
  color: white;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.app-preview-text {
  margin-top: 12px;
  max-width: 22ch;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.72;
}

.app-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.app-preview-actions span {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-weight: 600;
}

/* ── 内容网格和面板 ── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px);
  padding: 24px;
}

.panel h2 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.steps {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.item h3 {
  margin: 0;
  font-size: 1rem;
}

.item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ── 注意事项 ── */
.note {
  margin-top: 18px;
}

.note p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

/* ── 更新日志 ── */
.changelog {
  margin-top: 18px;
}

.changelog-list {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.changelog-item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.changelog-item-latest {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.04);
}

.changelog-version {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.version-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

.changelog-item-latest .version-tag {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
}

.version-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.changelog-entries {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.changelog-entries li {
  margin-bottom: 2px;
}

/* ── 响应式 ── */
@media (max-width: 960px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
    max-width: none;
    justify-self: stretch;
  }

  .app-preview {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  h1 {
    max-width: 10ch;
    font-size: clamp(2.5rem, 13vw, 3.8rem);
  }

  .hero-copy {
    padding-top: 10px;
  }

  .hero-card-body,
  .panel {
    padding: 18px;
  }

  .app-preview-actions {
    flex-direction: column;
    width: 100%;
  }
}
