
.sonfa-factory-page,
.sonfa-factory-page * {
  box-sizing: border-box;
}

.sonfa-factory-page {
  width: 100%;
  background-color: #ffffff;
  color: #334155;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  padding: 60px 0;
}

.sonfa-factory-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Header */
.sonfa-factory-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px auto;
}

.sonfa-factory-tag {
  font-size: 13px;
  font-weight: 700;
  color: #0090A6;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}

.sonfa-factory-main-title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

.sonfa-factory-subtitle {
  font-size: clamp(14px, 2vw, 17px);
  color: #475569;
  line-height: 1.7;
}

/* 阶段横幅标题 */
.sonfa-phase-banner {
  text-align: center;
  margin: 60px 0 40px 0;
}

.sonfa-phase-num {
  font-size: 11px;
  font-weight: 800;
  background-color: rgba(0, 144, 166, 0.1);
  color: #0090A6;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 12px;
}

.sonfa-phase-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

/* 时间轴主体布局 */
.sonfa-timeline-section {
  margin-bottom: 90px;
}

.sonfa-timeline-wrapper {
  position: relative;
  width: 100%;
  padding: 40px 0;
}

/* 贯穿中轴线 */
.sonfa-timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, #f1f5f9 0%, #0090A6 20%, #0090A6 80%, #f1f5f9 100%);
  transform: translateX(-50%);
  z-index: 1;
}

/* 时间轴各步骤行 */
.sonfa-timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 80px;
  width: 100%;
}

.sonfa-timeline-item:last-child {
  margin-bottom: 0;
}

/* 两侧栏等宽（各占 45%，保证两侧有充分呼吸感） */
.sonfa-timeline-img-col,
.sonfa-timeline-text-col {
  width: 45%;
}

.sonfa-timeline-img-col {
  display: flex;
  justify-content: flex-end;
}

.sonfa-timeline-item.sonfa-row-reverse .sonfa-timeline-img-col {
  justify-content: flex-start;
}

/* 正常排列（左图右文）：文字在右侧，在文字左侧增加安全内边距 */
.sonfa-timeline-text-col {
  padding-left: 60px;
  padding-right: 20px;
  text-align: left;
}

/* 反向排列（左文右图）：文字在左侧，在文字右侧增加安全内边距，并右对齐 */
.sonfa-timeline-item.sonfa-row-reverse .sonfa-timeline-text-col {
  padding-right: 60px;
  padding-left: 20px;
  text-align: right;
}

/* 反向行 (右图左文) */
.sonfa-row-reverse {
  flex-direction: row-reverse;
}

/* 时间轴核心节点 */
.sonfa-timeline-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border: 4px solid #0090A6;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.4s ease;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
}

.sonfa-timeline-item:hover .sonfa-timeline-node {
  background-color: #0090A6;
  box-shadow: 0 0 0 8px rgba(0, 144, 166, 0.15);
}

/* 步骤内容排版 */
.sonfa-step-badge {
  font-size: 11px;
  font-weight: 800;
  color: #0090A6;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 10px;
}

.sonfa-step-title {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.sonfa-step-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* 图片容器设计 */
.sonfa-img-wrapper {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sonfa-timeline-item:hover .sonfa-img-wrapper {
  transform: scale(1.025);
  box-shadow: 0 15px 35px -10px rgba(0, 144, 166, 0.15);
}

.sonfa-step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sonfa-timeline-item:hover .sonfa-step-img {
  transform: scale(1.06);
}

/* SECTION 4: CALL TO ACTION */
.sonfa-factory-cta {
  background-color: #000000 !important;
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  border: 1px solid #1f2937;
}

.sonfa-factory-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.sonfa-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.sonfa-cta-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.sonfa-cta-text {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 30px;
}

.sonfa-cta-btn-wrap {
  display: inline-block;
}

.sonfa-cta-button {
  display: inline-block;
  background-color: #0090A6;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 40px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 144, 166, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sonfa-cta-button:hover {
  background-color: #00b5d0;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 144, 166, 0.5);
}

/* 错落依次渐显 */
.sonfa-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sonfa-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
     RESIZE BREAKPOINTS (响应式适配)
     ========================================== */
@media (max-width: 900px) {
  .sonfa-timeline-line {
    left: 20px;
    transform: none;
  }

  .sonfa-timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    margin-bottom: 50px;
    padding-left: 50px;
  }

  .sonfa-timeline-img-col,
  .sonfa-timeline-text-col {
    width: 100% !important;
    text-align: left !important;
  }

  .sonfa-timeline-img-col {
    justify-content: flex-start !important;
    margin-bottom: 20px;
  }

  .sonfa-timeline-text-col {
    padding: 0;
  }

  .sonfa-timeline-node {
    left: 20px;
    top: 24px;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 650px) {
  .sonfa-factory-page {
    padding: 30px 0;
  }

  .sonfa-factory-hero {
    margin-bottom: 40px;
  }

  .sonfa-timeline-section {
    margin-bottom: 50px;
  }

  .sonfa-factory-cta {
    padding: 40px 20px;
  }
}
