/**
 * 首页样式 · 极简浅色（vben 统一风）
 * ============================================================================
 * 改版说明
 * ----------------------------------------------------------------------------
 * 旧版是「科技感暗场语言」：19 处渐变、扫描线、双色光晕、青紫配色。
 * 与用户中心 / 后台的 vben 极简浅色严重割裂，同一站点看起来像两个产品。
 *
 * 本版只保留真正有信息量的元素，砍掉纯装饰：
 *   · 背景：无网格、无扫描线、无光晕 —— 纯 #f7f9fc
 *   · 主按钮：实色（与 vben primary 一致），不用渐变
 *   · 标题：不再用渐变文字，改用字重与字号建立层级
 *   · 流水线示意：不再做成「仪表盘」，而是三行极简步骤
 *   · 卡片：白底 + 1px 边框 + 8px 圆角，无阴影堆叠
 *
 * 设计约束（与 vben 对齐）：
 *   圆角 8px / 卡片 12px   —— vben --radius
 *   主色 #536dfe           —— 与用户中心主色一致
 *   文字 #1f2329 / #6b7280 / #9ca3af
 *   边框 rgb(0 0 0 / 8%)
 * ============================================================================
 */

/* ---------------- 变量 ---------------- */
.uc-home {
  --h-bg: #f7f9fc;
  --h-surface: #ffffff;
  --h-surface-2: #f4f6fa;
  --h-ink: #1f2329;
  --h-ink2: #6b7280;
  --h-ink3: #9ca3af;
  --h-line: rgb(0 0 0 / 8%);
  --h-line-2: rgb(0 0 0 / 5%);
  --h-primary: #536dfe;
  --h-primary-hover: #4459d8;
  --h-radius: 8px;
  --h-radius-lg: 12px;

  background: var(--h-bg);
  color: var(--h-ink);
  position: relative;
  -webkit-font-smoothing: antialiased;
}

html.dark .uc-home {
  --h-bg: #16181c;
  --h-surface: #1e2024;
  --h-surface-2: #24262b;
  --h-ink: #e6e8ee;
  --h-ink2: #9aa1ad;
  --h-ink3: #6b7280;
  --h-line: rgb(255 255 255 / 10%);
  --h-line-2: rgb(255 255 255 / 6%);
  --h-primary: #8ba1ff;
  --h-primary-hover: #a3b5ff;
}

/* ---------------- 容器 ---------------- */
.hw {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.hs {
  padding: 56px 0;
}

.hs--tight {
  padding: 40px 0;
}

@media (max-width: 767px) {
  .hw {
    padding: 0 16px;
  }

  .hs {
    padding: 40px 0;
  }

  .hs--tight {
    padding: 32px 0;
  }
}

/* ============================================================================
   Hero
   ============================================================================ */
.h-hero {
  position: relative;
  padding: 88px 0 64px;
  background: var(--h-bg);
}

/* 背景层全部隐藏：极简风不需要网格/光晕/扫描线 */
.h-bg {
  display: none;
}

.h-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--h-line);
  border-radius: 999px;
  background: var(--h-surface);
  font-size: 12px;
  color: var(--h-ink2);
}

.h-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.h-pill__sep {
  width: 1px;
  height: 10px;
  background: var(--h-line);
}

.h-hero h1 {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(32px, 5.2vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--h-ink);
}

/* 标题第二行：不再用渐变文字，改用主色 + 稍轻字重，克制但有层次 */
.h-hero h1 em {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--h-primary);
}

.h-hero > .hw > p {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--h-ink2);
}

/* ---------------- 按钮 ---------------- */
.h-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}

.h-btn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--h-radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

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

.h-btn--primary {
  background: var(--h-primary);
  color: #fff;
  box-shadow: none;
}

.h-btn--primary:hover {
  background: var(--h-primary-hover);
  opacity: 1;
}

.h-btn--ghost {
  border: 1px solid var(--h-line);
  background: var(--h-surface);
  color: var(--h-ink);
}

.h-btn--ghost:hover {
  border-color: var(--h-ink3);
  background: var(--h-surface-2);
}

/* ---------------- 流水线示意：改为极简三步骤 ---------------- */
.h-pipe {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  max-width: 560px;
  margin: 40px 0 0;
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
}

.h-pipe__node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-left: 0;
  position: static;
}

/* 去掉小圆点 */
.h-pipe__dot {
  display: none;
}

.h-pipe__node b {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--h-ink);
}

.h-pipe__node i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--h-ink3);
  white-space: nowrap;
}

.h-pipe__line {
  flex: 1;
  height: 1px;
  min-width: 32px;
  margin: 0 14px;
  background: var(--h-line);
  border: 0;
}

.h-pipe__line i {
  display: none;
}

/* ---------------- 统计 ---------------- */
.h-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--h-line-2);
}

.h-stat b {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--h-ink);
  font-variant-numeric: tabular-nums;
}

.h-stat span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--h-ink3);
}

/* ============================================================================
   区块标题
   ============================================================================ */
.h-head {
  margin-bottom: 28px;
}

.h-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--h-ink);
}

.h-head p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--h-ink2);
}

.h-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

/* ============================================================================
   模型卡片
   ============================================================================ */
.h-models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.h-model {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius-lg);
  background: var(--h-surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.h-model:hover {
  border-color: rgb(83 109 254 / 35%);
  box-shadow: 0 2px 8px rgb(16 24 40 / 6%);
}

.h-model__top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.h-model__top h3 {
  min-width: 0;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--h-ink);
}

.h-model__tag {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--h-surface-2);
  font-size: 11px;
  color: var(--h-ink2);
}

.h-model__sizes {
  font-size: 12px;
  line-height: 1.6;
  color: var(--h-ink3);
  word-break: break-word;
}

.h-model__caps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.h-model__caps span {
  padding: 2px 7px;
  border: 1px solid var(--h-line);
  border-radius: 5px;
  font-size: 11px;
  color: var(--h-ink2);
}

.h-model__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--h-line-2);
}

.h-model__unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--h-primary);
  font-variant-numeric: tabular-nums;
}

.h-model__unit i {
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  color: var(--h-ink3);
}

.h-model__go {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--h-primary);
  text-decoration: none;
}

.h-model__go:hover {
  text-decoration: underline;
}

/* 模型状态点（保留但改成中性的） */
.h-model__status {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 11.5px;
  color: var(--h-ink3);
}

/* ============================================================================
   能力 / 展示网格
   ============================================================================ */
.h-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

/* 能力卡：横向布局（图标左 / 文案右）。
   之前是纵向堆叠，卡片被拉得很高，三个能力占掉近 300px 屏高，
   信息密度太低。 */
.h-cap,
.h-caps > div {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius-lg);
  background: var(--h-surface);
}

.h-cap h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--h-ink);
}

.h-cap p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--h-ink2);
}

/* 图标：不再用发光方块 */
.h-cap__i {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0;
  border-radius: var(--h-radius);
  background: rgb(83 109 254 / 8%);
  color: var(--h-primary);
}

.h-cap__i svg {
  width: 17px;
  height: 17px;
}

.h-cap > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  align-items: baseline;
  min-width: 0;
}

/* 描述紧跟标题，同一行；窄屏自动换行 */
.h-cap > div > p {
  flex: 1 1 200px;
}

/* ============================================================================
   更多链接 / 结尾 CTA
   ============================================================================ */
.h-more {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--h-primary);
  text-decoration: none;
}

.h-more:hover {
  text-decoration: underline;
}

.h-end {
  padding: 64px 0 72px;
  border-top: 1px solid var(--h-line-2);
  text-align: center;
}

.h-end h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--h-ink);
}

.h-end p {
  max-width: 480px;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--h-ink2);
}

.h-end .h-cta {
  justify-content: center;
  margin: 0;
}

/* ============================================================================
   入场动画：极轻微，不做花哨位移
   ============================================================================ */
.h-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.h-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .h-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================================
   移动端
   ============================================================================ */
@media (max-width: 767px) {
  .h-hero {
    padding: 56px 0 40px;
  }

  .h-hero h1 {
    margin-top: 18px;
    font-size: 30px;
  }

  .h-hero > .hw > p {
    font-size: 14px;
  }

  .h-pipe {
    gap: 0;
    margin-top: 28px;
  }

  .h-pipe__line {
    min-width: 18px;
    margin: 0 8px;
  }

  .h-stats {
    gap: 24px;
    margin-top: 32px;
    padding-top: 20px;
  }

  .h-stat b {
    font-size: 22px;
  }

  .h-models {
    grid-template-columns: 1fr;
  }

  .h-head h2,
  .h-end h2 {
    font-size: 20px;
  }

  .h-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* ============================================================================
   步骤卡（h-steps）
   ============================================================================ */
.h-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.h-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--h-line);
  border-radius: var(--h-radius-lg);
  background: var(--h-surface);
}

.h-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.h-step__head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--h-ink);
}

.h-step__chip {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--h-surface-2);
  font-size: 11px;
  color: var(--h-ink2);
}

.h-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--h-ink2);
}

.h-step__demo {
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid var(--h-line-2);
  border-radius: var(--h-radius);
  background: var(--h-surface-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--h-ink2);
  overflow-x: auto;
  white-space: nowrap;
}

/* ============================================================================
   作品墙（h-wall）
   ============================================================================ */
.h-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.h-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--h-radius-lg);
  background: var(--h-surface-2);
  text-decoration: none;
}

.h-tile--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.h-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.h-tile:hover img {
  transform: scale(1.03);
}

.h-tile__meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 12px 10px;
  background: linear-gradient(to top, rgb(0 0 0 / 55%), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.h-tile:hover .h-tile__meta {
  opacity: 1;
}

.h-tile__meta b {
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h-tile__go {
  flex-shrink: 0;
  color: #fff;
  opacity: 0.85;
}

/* ============================================================================
   近期作品（h-recent）
   ============================================================================ */
.h-recent {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.h-recent a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--h-radius);
  background: var(--h-surface-2);
}

.h-recent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.h-recent a:hover img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .h-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .h-tile--wide {
    grid-column: span 2;
  }

  .h-recent {
    grid-template-columns: repeat(3, 1fr);
  }
}
