
.ht-process {
  --ht-red: #B91C1C;
  --ht-heading: #2B2A29;

  width: calc(100% - 48px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 0 56px;
  box-sizing: border-box;
  font-family: "Opensans-Regular", "Open Sans", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: #4B4F57;
}

.ht-process *,
.ht-process *::before,
.ht-process *::after {
  box-sizing: border-box;
}

.ht-process [hidden] {
  display: none !important;
}

.ht-process h1,
.ht-process h2,
.ht-process h3,
.ht-process strong,
.ht-process b,
.ht-process .ht-num,
.ht-process .ht-title {
  font-family: "OpenSans-Bold", "Opensans-Regular", sans-serif;
  font-weight: 700;
}

.ht-process p,
.ht-process .ht-desc,
.ht-process .dt {
  font-family: "Opensans-Regular", "Open Sans", sans-serif;
  font-weight: 400;
}

/* 顶部介绍 */
.ht-process .ht-hero {
  background: linear-gradient(135deg, #2B2F36 0%, #B91C1C 100%);
  color: #fff;
  border-radius: 16px;
  padding: 34px 80px;
  text-align: center;
  margin-bottom: 0;
}

.ht-process .ht-hero h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  color: #fff;
}

.ht-process .ht-hero p {
  margin: 0;
  width: 100%;
  max-width: none;
  white-space: normal;
  overflow-wrap: break-word;
  color: #F2D9D6;
  font-size: 18px;
  line-height: 1.7;
}

.ht-process .ht-hero p + p {
  margin-top: 2px;
}

/* 外层用于定位滑动条 */
.ht-process .ht-flow-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

/*
 * 保留阴影所需的上下留白。
 * 自定义滑动条单独定位，不受底部留白影响。
 */
.ht-process .ht-flow {
  --ht-arrow-width: 24px;

  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 36px 0 56px;

  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;

  scrollbar-width: thin;
  scrollbar-color: #D7A6A2 #F5F5F5;
}

.ht-process .ht-flow::-webkit-scrollbar {
  height: 5px;
}

.ht-process .ht-flow::-webkit-scrollbar-track {
  background: #F5F5F5;
  border-radius: 10px;
}

.ht-process .ht-flow::-webkit-scrollbar-thumb {
  background: #D7A6A2;
  border-radius: 10px;
}

.ht-process .ht-flow:focus-visible {
  outline: 2px solid var(--ht-red);
  outline-offset: 4px;
}

/* 自定义滑动条启用后，隐藏原生滑动条 */
.ht-process .ht-flow-wrap.ht-scroll-ready .ht-flow {
  scrollbar-width: none;
}

.ht-process .ht-flow-wrap.ht-scroll-ready .ht-flow::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* 拖动滑动条时暂时关闭吸附，保证拖动顺畅 */
.ht-process .ht-flow-wrap.ht-scroll-dragging .ht-flow {
  scroll-snap-type: none;
}

/*
 * 滑动条位置：
 * 步骤区域底部留白56px；
 * 滑动条高8px，距离区域底部36px；
 * 因此滑动条位于卡片底部约12px处。
 */
.ht-process .ht-scrollbar {
  --ht-thumb-width: 80px;

  position: absolute;
  left: 0;
  bottom: 36px;
  z-index: 2;

  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 8px;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;

  appearance: none;
  -webkit-appearance: none;
  direction: ltr;
  cursor: pointer;
  touch-action: pan-y;
}

/* Chrome、Safari、Edge */
.ht-process .ht-scrollbar::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 10px;
  background: #F0F0F0;
}

.ht-process .ht-scrollbar::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: var(--ht-thumb-width);
  height: 5px;
  margin-top: 0;
  border: 0;
  border-radius: 10px;
  background: #D7A6A2;
  box-shadow: none;
  cursor: grab;
}

/* Firefox */
.ht-process .ht-scrollbar::-moz-range-track {
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 10px;
  background: #F0F0F0;
}

.ht-process .ht-scrollbar::-moz-range-progress {
  height: 5px;
  border-radius: 10px;
  background: #F0F0F0;
}

.ht-process .ht-scrollbar::-moz-range-thumb {
  width: var(--ht-thumb-width);
  height: 5px;
  border: 0;
  border-radius: 10px;
  background: #D7A6A2;
  box-shadow: none;
  cursor: grab;
}

.ht-process .ht-scrollbar:active::-webkit-slider-thumb {
  background: #C88D88;
  cursor: grabbing;
}

.ht-process .ht-scrollbar:active::-moz-range-thumb {
  background: #C88D88;
  cursor: grabbing;
}

.ht-process .ht-scrollbar:focus-visible {
  outline: 2px solid var(--ht-red);
  outline-offset: 5px;
}

/* 六个步骤 + 五个箭头 */
.ht-process .ht-step {
  flex: 0 0 calc((100% - 120px) / 6);
  min-width: 180px;

  background: #fff;
  border: 1px solid #E3E5E8;
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(43, 47, 54, .06);

  display: flex;
  flex-direction: column;

  transition: transform .2s ease, box-shadow .2s ease;
  overflow-wrap: break-word;
  scroll-snap-align: start;
}

@media (hover: hover) {
  .ht-process .ht-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(185, 28, 28, .14);
  }
}

.ht-process .ht-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #FCE9E7;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--ht-red);
  flex-shrink: 0;
}

.ht-process .ht-icon svg {
  width: 32px;
  height: 32px;
}

.ht-process .ht-num {
  display: inline-block;
  align-self: center;
  margin-bottom: 8px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 1px;
  color: var(--ht-red);
}

.ht-process .ht-title {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ht-heading);
  margin-bottom: 12px;
  min-height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-process .ht-toggle {
  margin: 2px 0 16px;
  align-self: center;
  background: #fff;
  border: 1px solid #F1C9C4;
  color: var(--ht-red);
  font-family: "Opensans-Regular", "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 20px;
  padding: 0 14px;
  height: 36px;
  min-height: 36px;
  flex-shrink: 0;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ht-process .ht-toggle .ht-label,
.ht-process .ht-toggle .ht-caret {
  font-family: "Opensans-Regular", "Open Sans", sans-serif;
  font-weight: 400;
}

.ht-process .ht-toggle:hover {
  background: #FCE9E7;
}

.ht-process .ht-toggle:focus-visible,
.ht-process .ht-btn:focus-visible {
  outline: 2px solid var(--ht-red);
  outline-offset: 4px;
}

.ht-process .ht-caret {
  display: inline-block;
  font-size: 10px;
  transition: transform .2s ease;
}

.ht-process .ht-step.open .ht-caret {
  transform: rotate(90deg);
}

.ht-process .ht-step.open .ht-toggle {
  margin-bottom: 0;
}

.ht-process .ht-desc {
  margin: 14px 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #4B4F57;
  text-align: left;
}

/* 六个结果框统一高度 */
.ht-process .ht-deliver {
  margin-top: auto;
  height: var(--ht-deliver-height, 90px);
  min-height: 90px;
  flex-shrink: 0;

  display: flex;
  align-items: flex-start;
  gap: 8px;

  background: #FCE9E7;
  border: 1px solid #F1C9C4;
  border-radius: 10px;
  padding: 10px;
  text-align: left;
}

.ht-process .ht-deliver .di {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: var(--ht-red);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
}

.ht-process .ht-deliver .di svg {
  width: 14px;
  height: 14px;
}

.ht-process .ht-deliver .dt {
  min-width: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #4B4F57;
}

/* 步骤之间的向右箭头 */
.ht-process .ht-arrow {
  flex: 0 0 var(--ht-arrow-width);
  width: var(--ht-arrow-width);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #B0B5BD;
}

.ht-process .ht-arrow svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* 底部询盘区域 */
.ht-process .ht-cta {
  margin-top: 0;
  background: #fff;
  border: 1px solid #E3E5E8;
  border-radius: 14px;
  padding: 30px 36px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(43, 47, 54, .06);
}

.ht-process .ht-cta h2 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.35;
  color: var(--ht-heading);
}

.ht-process .ht-cta p {
  margin: 4px 0;
  color: #4B4F57;
  font-size: 16px;
  line-height: 1.7;
}

.ht-process .ht-btn {
  display: inline-block;
  max-width: 100%;
  margin-top: 16px;
  background: var(--ht-red);
  color: #fff;
  text-decoration: none;
  font-family: "OpenSans-Bold", "Opensans-Regular", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 28px;
  border-radius: 10px;
}

.ht-process .ht-btn:hover {
  background: #9B1717;
  color: #fff;
}

/* 笔记本和平板：一屏三个步骤 */
@media (max-width: 1399px) {
  .ht-process .ht-step {
    flex-basis: calc((100% - 48px) / 3);
  }
}

/* 手机：一屏两个步骤 */
@media (max-width: 699px) {
  .ht-process {
    width: calc(100% - 32px);
    padding: 24px 0 36px;
  }

  .ht-process .ht-hero {
    padding: 24px 20px;
    margin-bottom: 0;
  }

  .ht-process .ht-hero h1 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.35;
    overflow-wrap: break-word;
  }

  .ht-process .ht-hero p {
    font-size: 13px;
    line-height: 1.7;
  }

  .ht-process .ht-hero p + p {
    margin-top: 8px;
  }

  .ht-process .ht-step {
    flex-basis: calc((100% - 24px) / 2);
    min-width: 0;
    padding: 20px 12px;
  }

  .ht-process .ht-title {
    min-height: 66px;
  }

  .ht-process .ht-toggle {
    font-size: 13px;
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
  }

  .ht-process .ht-desc {
    font-size: 13px;
    line-height: 1.7;
  }

  .ht-process .ht-deliver {
    gap: 6px;
    padding: 10px 8px;
  }

  .ht-process .ht-deliver .dt {
    font-size: 13px;
    line-height: 1.5;
  }

  .ht-process .ht-cta {
    margin-top: 0;
    padding: 24px 20px;
  }

  .ht-process .ht-cta h2 {
    font-size: 16px;
    line-height: 1.4;
  }

  .ht-process .ht-cta p {
    font-size: 13px;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ht-process .ht-step,
  .ht-process .ht-caret {
    transition: none;
  }

  .ht-process .ht-step:hover {
    transform: none;
  }
}
