/* ── 算法定制页 · Hero（对齐 demo / 关于我们深色科技风） ── */
.custom-hero {
  position: relative;
  padding: 44px 0 64px;
  background:
    radial-gradient(ellipse 70% 55% at 75% 35%, rgba(37, 99, 235, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 45% 35% at 12% 75%, rgba(6, 182, 212, 0.14) 0%, transparent 52%),
    linear-gradient(180deg, #030712 0%, #0a1628 50%, #061018 100%);
  overflow: hidden;
}

.custom-hero__grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.custom-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.custom-hero__glow--primary {
  width: 380px;
  height: 380px;
  top: -60px;
  right: 10%;
  background: rgba(37, 99, 235, 0.22);
}

.custom-hero__glow--secondary {
  width: 240px;
  height: 240px;
  top: 35%;
  left: 6%;
  background: rgba(6, 182, 212, 0.12);
}

.custom-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.custom-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 16px 8px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(186, 230, 253, 0.95);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
}

.custom-hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
}

.custom-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f8fafc;
  margin-bottom: 14px;
}

.custom-hero__desc {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(148, 163, 184, 0.95);
}

.custom-hero__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.custom-hero__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 18px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.custom-hero__feature:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.custom-hero__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.custom-hero__feature-icon img {
  width: 28px;
  height: 28px;
}

.custom-hero__feature-text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.95);
  text-align: center;
}

.custom-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── 定制流程 ── */
.section-head__eyebrow--light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(37, 99, 235, 0.92);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
}

.section-head__eyebrow--light::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.4);
}

.custom-flow {
  padding-top: 72px;
  padding-bottom: 56px;
}

.custom-flow .section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.custom-flow .section-head p {
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.custom-flow .section-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  color: var(--color-text-primary);
}

.custom-flow__panel {
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow: 0 4px 32px rgba(37, 99, 235, 0.08);
}

.custom-flow__panel img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ── 案例区块 ── */
.custom-case {
  padding-top: 56px;
  padding-bottom: 56px;
}

.custom-case--alt {
  padding-top: 48px;
}

.custom-case .section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.custom-case .section-head h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-text-primary);
}

.custom-case__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.custom-case__grid--reverse .custom-case__main {
  order: 2;
}

.custom-case__grid--reverse .custom-case__figure {
  order: 1;
}

.custom-case__video {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  background: #0f172a;
}

.custom-case__video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  vertical-align: top;
}

.custom-case__points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.custom-case__points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.custom-case__points li:last-child {
  margin-bottom: 0;
}

.custom-case__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.custom-case__figure {
  margin: 0;
  border-radius: calc(var(--radius-lg) + 2px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.custom-case__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* 纯图文案例（无视频，机器视觉页） */
.custom-case__grid--text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.custom-case__grid--text .custom-case__points {
  margin: 0;
}

.custom-case__grid--text.custom-case__grid--reverse .custom-case__points {
  order: 2;
}

.custom-case__grid--text.custom-case__grid--reverse .custom-case__figure {
  order: 1;
}

@media (max-width: 992px) {
  .custom-hero {
    padding: 36px 0 52px;
  }

  .custom-hero__features {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .custom-hero__feature {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    text-align: left;
  }

  .custom-hero__feature-text {
    text-align: left;
  }

  .custom-case__grid,
  .custom-case__grid--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .custom-case__grid--reverse .custom-case__main,
  .custom-case__grid--reverse .custom-case__figure {
    order: unset;
  }

  .custom-case__figure {
    order: -1;
  }

  .custom-case__grid--text,
  .custom-case__grid--text.custom-case__grid--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .custom-case__grid--text .custom-case__points,
  .custom-case__grid--text.custom-case__grid--reverse .custom-case__points,
  .custom-case__grid--text.custom-case__grid--reverse .custom-case__figure {
    order: unset;
  }

  .custom-case__grid--text .custom-case__figure {
    order: -1;
  }
}

@media (max-width: 576px) {
  .custom-hero h1 {
    font-size: 1.5rem;
  }

  .custom-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .custom-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .custom-flow__panel {
    padding: 12px;
  }
}
