/* 首屏双产品卡 + 开源信号（覆盖层，不动旧站结构） */

/* ---------- 双产品卡 ---------- */
.hero-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.hero-duo .hero-duo .hcard {
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hero-duo .hcard:hover {
  border-color: #d8b6a6;
  box-shadow: 0 20px 44px -34px rgba(23, 26, 31, .55);
  transform: translateY(-2px);
  text-decoration: none;
}
.hshot {
  position: relative;
  background: #eef1ea;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hshot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}
/* 硬件卡：深色渲染图裁切到机身中部 */
.hcard--hw .hshot img { object-position: center 42%; }
/* 软件卡：界面截图取上半部，避免底部截断 */
.hcard--sw .hshot img { object-position: top center; }

.hcap { display: block; padding: 12px 14px 14px; }
.hk {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.hoss {
  font-style: normal;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(194, 65, 12, .35);
  background: #fbeee6;
  color: #9a3412;
  font-size: 9.5px;
  letter-spacing: .04em;
}
.hcap b {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
}
.hsub {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hgo {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: #b03d0f;
  white-space: nowrap;
}

/* ---------- CTA 下的开源一行 ---------- */
.hero-open { margin: 16px 0 0; }
.hero-open a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dashed rgba(23, 26, 31, .18);
  padding-bottom: 2px;
}
.hero-open a:hover { color: #8f330a; border-bottom-color: rgba(194, 65, 12, .5); }
.ho-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex: none;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1024px) {
  .hero-duo { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  .hero-duo { grid-template-columns: 1fr; }
  .hshot img { aspect-ratio: 16 / 10; }
}

/* 视觉列给得更宽：双卡才不挤 */
.hero-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important; }
@media (max-width: 1024px) { .hero-inner { grid-template-columns: minmax(0, 1fr) !important; } }

/* 卡片等高 + 标签不折行 */
.hero-duo .hcard { height: 100%; }
.hk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hoss { white-space: nowrap; }
.hcard--sw .hshot img { object-position: top center; }

/* 两张图统一取景，避免一深一白失衡 */
.hshot img { box-shadow: inset 0 0 0 1px rgba(23,26,31,.05); }
.hcard--hw .hshot { background: #0f1620; }

/* ---------- 徽章：可点 ---------- */
a.hero-badge { text-decoration: none; color: var(--text-dim); transition: border-color .18s, color .18s; }
a.hero-badge:hover { border-color: var(--cyan); color: #8f330a; text-decoration: none; }

/* ---------- 首屏事实条（chips） ---------- */
.hero-chips {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero-chips li a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--border); border-radius: 999px;
  background: #fff;
  font-size: 12px; color: var(--text-dim);
  text-decoration: none; white-space: nowrap;
  transition: border-color .18s, color .18s, background .18s;
}
.hero-chips li a b {
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: #9a3412;
}
.hero-chips li a:hover { border-color: rgba(194,65,12,.45); color: var(--text); text-decoration: none; }

/* ---------- 首屏与指标条间距收紧 ---------- */
.hero { padding-bottom: 24px; }
.hero + .section-sm { padding: 8px 0 28px; }
.hero-inner { padding-bottom: 4px !important; }
.hero + .section-sm .stats-band { margin-top: 0; }
/* 指标条文字变长：允许两行，行距收紧 */
.stats-grid .s-label { line-height: 1.45; }
@media (max-width: 760px) {
  .hero { padding-bottom: 28px; }
  .hero + .section-sm { padding: 8px 0 20px; }
}

/* ---------- 产品区双卡：配图改为常规流，避免压字 ---------- */
.duo-grid .duo-img,
.duo-grid .duo-img.shot {
  position: relative; right: auto; bottom: auto; left: auto;
  width: 100%; max-width: none;
  margin: 22px 0 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  filter: none;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.duo-grid .duo-card h3 { max-width: none; }
.duo-grid .duo-card p { max-width: 92%; }
.duo-grid .duo-foot { max-width: none; }
.duo-card:hover { border-color: #d8b6a6; }
.duo-tag { color: var(--cyan); border-color: rgba(194, 65, 12, .35); }

/* 首屏双卡：新图为 16:10 全幅，调整取景 */
.hcard--hw .hshot { background: #fbf7f2; }
.hcard--hw .hshot img { object-position: center; }
.hcard--sw .hshot img { object-position: center top; }

/* 首屏卡：图片满宽出血，文字区留白 */
.hero-duo .hcard { padding: 0; overflow: hidden; }
.hero-duo .hshot { margin: 0; border: 0; border-bottom: 1px solid var(--border); }
.hero-duo .hshot img { aspect-ratio: 16 / 10; width: 100%; display: block; object-fit: cover; }
.hcard--hw .hshot { background: #f7f2ea; }
.hcard--hw .hshot img { object-position: center 46%; }
.hcard--sw .hshot img { object-position: center top; }

/* ---------- 产品区双卡：行对齐（tag / h3 / 正文 / 列表 / 图 / 底部） ---------- */
.duo-grid { grid-template-rows: auto auto auto auto auto auto; align-items: stretch; }
.duo-grid > .duo-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  row-gap: 0;
  align-content: stretch;
}
.duo-grid > .duo-card > .panel-lines { display: none; }
.duo-grid .duo-card h3 { margin: 14px 0 10px; align-self: start; }
.duo-grid .duo-card p { margin: 0; align-self: start; }
.duo-grid .duo-list { margin: 14px 0 0; align-self: start; }
.duo-grid .duo-img { margin-top: 18px; align-self: start; }
.duo-grid .duo-foot { margin-top: 18px; align-self: end; }
/* 列表项等高，单行 */
.duo-grid .duo-list li { min-height: 24px; }

@supports not (grid-template-rows: subgrid) {
  .duo-grid > .duo-card { display: flex; flex-direction: column; }
  .duo-grid .duo-foot { margin-top: auto; }
}

/* 产品区双卡：内边距与宽度兜底 */
.duo-grid > .duo-card { padding: clamp(30px, 3.2vw, 46px); }
.duo-grid .duo-card .duo-tag { justify-self: start; align-self: start; }
.duo-grid .duo-card h3,
.duo-grid .duo-card p,
.duo-grid .duo-card .duo-list,
.duo-grid .duo-card .duo-foot { max-width: 100%; }
.duo-grid .duo-card p { overflow-wrap: break-word; }

/* ---------- 首屏：数据条跟在双卡下方 ---------- */
.hero-duo + .telemetry {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
}
.hero-duo + .telemetry .t-cell { padding: 12px 14px; }
.hero-duo + .telemetry .t-label { font-size: 9.5px; }
.hero-duo + .telemetry .t-num { font-size: 17px; }

@media (max-width: 1024px) {
  .hero-duo + .telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-duo + .telemetry .t-cell:nth-child(3),
  .hero-duo + .telemetry .t-cell:nth-child(4) { border-top: 1px solid var(--border); }
}

/* 右列：双卡 + 数据条 */
.hero-side { display: flex; flex-direction: column; min-width: 0; }

/* 首屏两列顶对齐 */
@media (min-width: 1025px) {
  .hero-inner { align-items: start; }
}
