/* ==========================================================================
   home.v1.css — 首页布局样式（2026-10-27 官网修订）
   - 仅 index.html 加载（在 product.v1.css 之后）；颜色令牌来自主题文件。
   - 内容：首屏双栏（文案 + 输入示例卡）、三步卡、界面区（轮播 + 配置）。
   - 约束：不改 script.v11.js 的交互契约（reveal / 轮播 / 弹窗 / 菜单类名）。
   ========================================================================== */

/* ---------- 1. 首屏：左文案右示例（桌面双栏，移动单栏） ---------- */
.product-page .hero {
  display: block;
  min-height: 0;
  padding: calc(var(--nav-height) + 56px) 0 72px;
  text-align: left;
}
.product-page .hero-grid {
  display: grid;
  /* minmax(0, …) + 子项 min-width:0：防录屏（894px 固有宽）作为网格项
     min-content 撑大右列、把文字列挤成窄条。
     0.78 : 1 —— 文字列比原先窄约 20%，把宽度让给录屏（看得清候选词） */
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.product-page .hero-grid > * { min-width: 0; }
.product-page .hero h1 {
  /* 收窄后仍保证标题单行放得下 */
  font-size: clamp(1.8rem, 2.9vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.product-page .hero-tagline {
  max-width: 32em;
  margin: 0 0 28px;
}
/* 两个下载按钮恒为同一行（版本徽章各在自己按钮下方），任何宽度都不换行成上下两排 */
.product-page .hero-downloads {
  justify-content: flex-start;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
/* 按钮按内容宽度排布（不撑满整列），两枚并排后左侧对齐 */
.product-page .platform-cta {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
}
.product-page .platform-cta .btn {
  width: auto;
  min-width: 0;
  padding: 13px clamp(12px, 1.5vw, 20px);
  font-size: clamp(0.875rem, 1.05vw, 0.95rem);
  white-space: nowrap;
}
/* 窄屏按钮文案去掉「下载」前缀（Icon 已在表达下载），保证仍能并排 */
.product-page .dl-label-short { display: none; }
.product-page .hero-meta {
  margin-top: 24px;
  text-align: left;
  /* 窄栏里保持一行（默认 0.875rem + span 两侧 8px 会在 452px 处折断单词） */
  font-size: 0.8125rem;
}
.product-page .hero-meta span { margin: 0 5px; }
.product-page .hero-meta .meta-label { margin-left: 0; }

/* ---------- 2. 输入示例卡（真实使用录屏，assets/demo-typing.mp4） ---------- */
.product-page .demo-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px 14px;
}
.product-page .demo-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.product-page .demo-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-1);
}
/* 静音自动循环；reduce 时由 script.v13.js 暂停。
   aspect-ratio 按源片 894×302 预留高度：元数据到达前卡片也不塌陷/撑高 */
.product-page .demo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 894 / 302;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
}
.product-page .demo-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- 3. 间隔底色分区（下载区） ---------- */
.product-page .section-soft { background: #eef1f6; }

/* ---------- 5. 界面区：轮播 + 配置上下排布 ---------- */
.product-page .config-stack {
  margin-top: 64px;
}

/* ---------- 6. 响应式 ---------- */
@media (max-width: 960px) {
  .product-page .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .product-page .hero-downloads { justify-content: center; }
  .product-page .hero-tagline,
  .product-page .hero-meta { text-align: center; margin-left: auto; margin-right: auto; }
  .product-page .hero h1 { text-align: center; }
}
@media (max-width: 768px) {
  .product-page .hero { padding: calc(var(--nav-height) + 36px) 0 56px; }
  .product-page .config-stack { margin-top: 44px; }
}
/* 窄屏：仍保持并排，只收紧字号/内边距；≤480 再换短文案 */
@media (max-width: 620px) {
  .product-page .hero-downloads { gap: 10px; }
  .product-page .platform-cta .btn {
    padding: 12px 10px;
    font-size: 0.8125rem;
  }
}
@media (max-width: 480px) {
  .product-page .dl-label-long { display: none; }
  .product-page .dl-label-short { display: inline; }
  .product-page .platform-cta .btn { font-size: 0.78rem; padding: 11px 8px; }
}
