/* 首页：八大特色 + 四步流程融合模块（v2 精致版） */
.bx-home-flow {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200, 16, 46, 0.04), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f8f6f3 100%);
  overflow: hidden;
}

.bx-home-flow__head {
  margin-bottom: 16px;
}

.bx-home-flow__shell {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(200, 16, 46, 0.1);
  background: #fff;
  box-shadow:
    0 20px 50px rgba(26, 26, 26, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* ── 八大特色：居中图标卡片，无表格线 ── */
.bx-home-flow__feats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 18px 20px 20px;
  background:
    linear-gradient(180deg, #fff 0%, #fdfbf8 100%);
}

.bx-home-flow__feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 14px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.04);
  cursor: default;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease,
    background 0.28s ease;
}

.bx-home-flow__feat:hover,
.bx-home-flow__feat:focus-visible {
  border-color: rgba(200, 16, 46, 0.22);
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.1);
  transform: translateY(-3px);
  outline: none;
}

.bx-home-flow.is-inview .bx-home-flow__feat {
  animation: bx-flow-feat-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(var(--bx-feat-i, 0) * 0.045s);
}

.bx-home-flow__feat.is-linked {
  border-color: rgba(200, 16, 46, 0.35);
  background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.12);
}

.bx-home-flow__feat-ico {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--bx-red);
  background:
    radial-gradient(circle at 30% 20%, #fff 0%, transparent 55%),
    linear-gradient(145deg, #fff0f2 0%, #f5ebe3 100%);
  border: 1px solid rgba(200, 16, 46, 0.14);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.08);
  transition: transform 0.3s ease;
}

.bx-home-flow__feat-ico svg {
  width: 24px;
  height: 24px;
}

.bx-home-flow__feat:hover .bx-home-flow__feat-ico,
.bx-home-flow__feat.is-linked .bx-home-flow__feat-ico {
  transform: scale(1.06) translateY(-1px);
}

.bx-home-flow__feat-title {
  font-size: calc(14px * var(--bx-text-scale, 1));
  line-height: 1.35;
  font-weight: 700;
  color: var(--bx-red);
  letter-spacing: 0.02em;
}

.bx-home-flow__feat-desc,
.bx-home-flow__band-eyebrow {
  display: none;
}

/* ── 红条流程区：与上区自然衔接 ── */
.bx-home-flow__band {
  position: relative;
  padding: 0;
  color: #fff;
  background: linear-gradient(118deg, #d4183a 0%, #c8102e 42%, #9e0c24 100%);
}

.bx-home-flow__band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}

.bx-home-flow__band-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.bx-home-flow__band-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 10px 20px;
  padding: 16px 22px 14px;
}

.bx-home-flow__band-head {
  grid-row: 1 / span 2;
  align-self: center;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.bx-home-flow__band-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.9;
  font-weight: 600;
}

.bx-home-flow__band-title {
  margin: 4px 0 0;
  font-size: calc(clamp(20px, 2.4vw, 24px) * var(--bx-text-scale, 1));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.bx-home-flow__track-wrap {
  position: relative;
  align-self: center;
  padding: 4px 0 0;
}

.bx-home-flow__track {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 30px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.bx-home-flow__track-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #fff);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bx-home-flow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  position: relative;
  z-index: 1;
}

.bx-home-flow__step-btn {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease;
}

.bx-home-flow__step-btn:hover {
  transform: translateY(-2px);
}

.bx-home-flow__step-ring {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}

.bx-home-flow__step-num {
  position: absolute;
  top: -2px;
  left: -2px;
  z-index: 2;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--bx-red);
  font-size: 10px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bx-home-flow__step-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.38);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.bx-home-flow__step-ico svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.bx-home-flow__step.is-active .bx-home-flow__step-ico {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: scale(1.05);
}

.bx-home-flow__step.is-active .bx-home-flow__step-ico svg {
  stroke: var(--bx-red);
}

.bx-home-flow__step.is-active .bx-home-flow__step-num {
  background: #fff;
  color: var(--bx-red);
}

.bx-home-flow__step.is-done .bx-home-flow__step-ico {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

.bx-home-flow__step.is-done .bx-home-flow__step-ico svg {
  stroke: var(--bx-red);
  opacity: 0.88;
}

.bx-home-flow__step-label {
  font-size: calc(12px * var(--bx-text-scale, 1));
  line-height: 1.35;
  text-align: center;
  opacity: 0.86;
  padding: 0 4px;
  max-width: 7.5em;
  transition: opacity 0.25s ease, font-weight 0.25s ease;
}

.bx-home-flow__step.is-active .bx-home-flow__step-label {
  opacity: 1;
  font-weight: 700;
}

.bx-home-flow__detail {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-top: 2px;
  min-height: 36px;
}

.bx-home-flow__detail-lead {
  margin: 0;
  flex: 1 1 200px;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.94;
}

.bx-home-flow__detail-time {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
}

.bx-home-flow__detail.is-switching .bx-home-flow__detail-lead {
  animation: bx-flow-detail-fade 0.35s ease;
}

.bx-home-flow__more {
  margin: 18px 0 0;
  text-align: center;
}

@keyframes bx-flow-feat-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bx-flow-detail-fade {
  from {
    opacity: 0.35;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .bx-home-flow__feats {
    display: none;
  }

  .bx-home-flow__band-head,
  .bx-home-flow__detail {
    display: none;
  }

  .bx-home-flow__feat {
    padding: 12px 8px 10px;
  }

  .bx-home-flow__feat-ico {
    width: 42px;
    height: 42px;
  }

  .bx-home-flow__feat-ico svg {
    width: 21px;
    height: 21px;
  }

  .bx-home-flow__band-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
    padding: 14px 16px 12px;
  }

  .bx-home-flow__band-head {
    grid-row: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 0 10px;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .bx-home-flow__band-title {
    margin: 0;
  }

  .bx-home-flow__track {
    display: none;
  }

  .bx-home-flow__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 6px;
  }

  .bx-home-flow__detail {
    grid-column: 1;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

@media (max-width: 560px) {
  .bx-home-flow__shell {
    border-radius: 16px;
  }

  .bx-home-flow__feat-title {
    font-size: 13px;
  }

  .bx-home-flow__step-ring,
  .bx-home-flow__step-ico {
    width: 46px;
    height: 46px;
  }

  .bx-home-flow__step-ico svg {
    width: 21px;
    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bx-home-flow__feat,
  .bx-home-flow__step-ico,
  .bx-home-flow__track-fill,
  .bx-home-flow__detail-lead {
    transition: none !important;
    animation: none !important;
  }
}
