/* ============================================================
   首页专用样式（class 统一以 h- 前缀）
   ============================================================ */

/* ---------- 首屏轮播 ---------- */
.h-hero {
  position: relative;
  background: var(--c-ink);
  overflow: hidden;
}

.h-slides {
  position: relative;
  height: 460px;
}

.h-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}

.h-slide.is-on {
  opacity: 1;
  pointer-events: auto;
}

/* 渐变底图上叠加一层细暗调，保证白字可读 */
.h-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 27, 31, 0.45) 0%, rgba(24, 27, 31, 0.2) 60%, rgba(24, 27, 31, 0.5) 100%);
}

.h-slide-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.h-slide-body .h-title {
  color: #fff;
  font-size: 40px;
  max-width: 620px;
  margin-bottom: 14px;
}

.h-slide-body p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 26px;
}

.h-slide-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.h-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.h-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.h-prev {
  left: 18px;
}

.h-next {
  right: 18px;
}

.h-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}

.h-dot {
  width: 30px;
  height: 4px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.34);
  transition: background 0.2s;
}

.h-dot.is-on {
  background: var(--c-orange);
}

/* ---------- 服务承诺条 ---------- */
.h-bar {
  background: #fff;
  border-bottom: 1px solid var(--c-line-soft);
}

.h-bar-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 22px 0;
}

.h-bar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-text);
}

.h-bar-list .ico {
  color: var(--c-orange);
  font-size: 22px;
}

.h-bar-list b {
  display: block;
  font-size: 15px;
  color: var(--c-ink);
}

.h-bar-list small {
  color: var(--c-muted);
  font-size: 12px;
}

/* ---------- 区块标题行（左标题 + 右按钮） ---------- */
.h-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.h-head-row .section-head {
  margin-bottom: 0;
}

/* ---------- 品类入口 ---------- */
.h-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.h-cat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.h-cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh);
  border-color: var(--c-orange);
}

.h-cat .ico {
  font-size: 26px;
  color: var(--c-orange);
}

.h-cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
}

.h-cat-meta {
  font-size: 12px;
  color: var(--c-muted);
}

/* ---------- 热门产品 ---------- */
.h-prods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.h-prod {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  color: inherit;
  text-decoration: none;
}

.h-prod:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh);
  border-color: var(--c-orange);
}

.h-prod-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--c-bg-mute);
}

.h-prod-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.h-prod-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.h-prod-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
  flex: 1;
}

.h-prod-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.h-tier {
  font-size: 12px;
  font-family: var(--font-num);
  color: var(--c-text-sub);
  background: var(--c-bg-soft);
  border-radius: var(--r-sm);
  padding: 3px 8px;
}

.h-prod-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--c-line-soft);
}

.h-prod-price {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--c-orange-dark);
  font-size: 17px;
}

.h-prod-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-orange);
}

.h-prod-go .ico {
  font-size: 14px;
}

/* ---------- 一句话报价 ---------- */
.h-ai-section {
  position: relative;
  margin-top: -56px;
  z-index: 5;
}

.h-ai {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 34px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-deep) 100%);
  box-shadow: var(--sh);
}

.h-ai-copy h2 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 12px;
}

.h-ai-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.8;
}

.h-ai-copy .eyebrow {
  background: rgba(240, 131, 33, 0.18);
  color: var(--c-orange);
}

.h-ai-form {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 18px;
}

.h-ai-form .input {
  height: 48px;
  margin-bottom: 10px;
}

.h-ai-form .btn {
  width: 100%;
}

/* ---------- 服务优势 ---------- */
.h-advs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.h-adv {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}

.h-adv .ico {
  font-size: 26px;
  color: var(--c-orange);
  margin-bottom: 12px;
}

.h-adv h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.h-adv p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ---------- 服务流程 ---------- */
.h-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.h-step {
  position: relative;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}

.h-step-no {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  color: var(--c-orange-soft);
  line-height: 1;
  margin-bottom: 10px;
}

.h-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

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

/* ---------- 案例预览 ---------- */
.h-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.h-case {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background: #fff;
}

.h-case img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s;
}

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

.h-case-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 16px 14px;
  background: linear-gradient(180deg, rgba(24, 27, 31, 0) 0%, rgba(24, 27, 31, 0.86) 70%);
  color: #fff;
}

.h-case-title {
  font-size: 15px;
  font-weight: 700;
}

.h-case-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 底部联系条 ---------- */
.h-cta {
  background: var(--c-ink);
  color: #fff;
  padding: 46px 0;
}

.h-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.h-cta h2 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 8px;
}

.h-cta p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.h-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.h-cta .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.h-cta .btn-ghost:hover {
  border-color: #fff;
}

/* ---------- 骨架 ---------- */
.h-sk {
  height: 460px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .h-ai {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 768px) {
  .h-slides,
  .h-sk {
    height: 380px;
  }

  .h-slide-body .h-title {
    font-size: 26px;
  }

  .h-slide-body p {
    font-size: 14px;
  }

  .h-arrow {
    display: none;
  }

  .h-bar-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .h-ai-section {
    margin-top: -36px;
  }

  .h-ai {
    padding: 22px 18px;
  }

  .h-ai-copy h2 {
    font-size: 21px;
  }

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

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

  .h-prods,
  .h-cases {
    grid-template-columns: 1fr;
  }

  .h-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .h-cta-btns {
    width: 100%;
  }

  .h-cta-btns .btn {
    flex: 1;
  }
}