/* =========================================================
   flabor 页 - 自定义样式（由 flabor/style.less 转译）
   ========================================================= */

/* ---------- Banner（flabor/style.less .banner） ---------- */
.flabor-banner {
  height: 350px;
  margin-top: 80px;
  background: url(../images/flabor/banner.png) no-repeat center center;
  background-size: cover;
}
.flabor-banner-wrap {
  width: 1200px;
  margin: 0 auto;
  padding-top: 81px;
  color: #ffffff;
}
.flabor-banner-wrap h2 {
  line-height: 42px;
  font-family: PingFangSC-Medium;
  font-size: 30px;
  font-weight: normal;
}
.flabor-banner-wrap p {
  width: 524px;
  margin-top: 20px;
  line-height: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.flabor-banner-wrap .button {
  margin-top: 24px;
}

/* ---------- 多样化的专业服务内容（.scene0） ---------- */
.flabor-scene0 {
  padding-top: 80px;
  padding-bottom: 120px;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.flabor-scene0 > img {
  width: 1200px;
  max-width: 100%;
  height: auto;
  margin-top: 60px;
}

/* ---------- 卓越能力奠定极致服务（.scene1） ---------- */
.flabor-scene1 {
  padding-top: 80px;
  height: 714px;
  background-image: linear-gradient(180deg, #f0f4fd 0%, #ffffff 100%);
}
.flabor-content-box {
  display: flex;
  align-items: center;
  flex-direction: column;
}
/* 连接线（含四个节点圆点） */
.flabor-line {
  position: relative;
  margin-top: 77px;
  width: 1200px;
  height: 1px;
  border: solid 1px #dee3eb;
}
.flabor-line .flabor-circle {
  top: -8px;
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0px 2px 4px 0px rgba(207, 207, 207, 0.5);
}
.flabor-line .flabor-c1 { border: solid 2px #cbaa2a; }
.flabor-line .flabor-c2 { border: solid 2px #f76729; }
.flabor-line .flabor-c3 { border: solid 2px #0062ee; }
.flabor-line .flabor-c4 { border: solid 2px #f76729; }

/* 四个能力卡片 */
.flabor-content {
  margin-top: 40px;
  display: flex;
  align-items: center;
}
.flabor-item {
  margin: 0 20px;
  width: 270px;
  height: 338px;
  background-color: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(75, 76, 83, 0.08);
  border-radius: 4px;
  border: solid 1px #ededed;
  padding-top: 45px;
  display: flex;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
}
.flabor-item .flabor-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flabor-item .flabor-icon svg {
  width: 56px;
  height: 56px;
}
.flabor-item .flabor-icon.fb-c1 { color: #cbaa2a; }
.flabor-item .flabor-icon.fb-c2 { color: #f76729; }
.flabor-item .flabor-icon.fb-c3 { color: #0062ee; }
.flabor-item .flabor-icon.fb-c4 { color: #f76729; }

.flabor-item h2 {
  margin-top: 20px;
  font-family: PingFangSC-Medium;
  font-size: 20px;
  color: #333333;
  font-weight: normal;
}
.flabor-item p {
  width: 190px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 26px;
  color: #606060;
}

/* ---------- 底部 CTA（原 SignUpFooter 组件） ---------- */
.flabor-cta {
  height: 180px;
  overflow: hidden;
  color: #ffffff;
  background: url(../images/bg5.png) no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flabor-cta .cta-title {
  font-family: PingFangSC-Medium;
  font-size: 28px;
  margin-right: 40px;
  white-space: nowrap;
}
.flabor-cta .cta-btn {
  width: 140px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  color: #ffffff;
  background-image: linear-gradient(40deg, #daa842 0%, #f7dc87 100%);
  border: 0;
  border-radius: 23px;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 16px;
  transition: opacity 0.2s ease;
}
.flabor-cta .cta-btn:hover {
  opacity: 0.9;
}

/* =========================================================
   基础自适应
   ========================================================= */
@media (max-width: 1219.98px) {
  .flabor-banner-wrap {
    width: auto;
    max-width: 1200px;
    margin-left: 24px;
    margin-right: 24px;
  }
  .flabor-line {
    width: calc(100% - 48px);
    max-width: 1200px;
  }
  .flabor-scene0 > img {
    padding: 0 24px;
    box-sizing: border-box;
  }
}

@media (max-width: 991.98px) {
  .flabor-banner-wrap {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
  }
  .flabor-scene0 {
    padding-bottom: 70px;
  }
  .flabor-scene1 {
    height: auto;
    padding-bottom: 80px;
  }
  .flabor-line {
    display: none;
  }
  .flabor-content {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 720px;
  }
  .flabor-item {
    margin: 10px;
    width: calc(50% - 20px);
  }
}

@media (max-width: 767.98px) {
  .flabor-banner {
    margin-top: 64px;
    height: 320px;
  }
  .flabor-banner-wrap {
    padding-top: 56px;
    max-width: 100%;
  }
  .flabor-banner-wrap p {
    width: 100%;
  }
  .flabor-scene0 {
    padding-top: 46px;
    padding-bottom: 50px;
  }
  .flabor-scene0 > img {
    padding: 0 16px;
    margin-top: 20px;
  }
  .flabor-scene1 {
    padding-top: 46px;
    padding-bottom: 56px;
  }
  .flabor-content {
    max-width: 100%;
    margin-top: 20px;
  }
  .flabor-item {
    width: calc(100% - 24px);
    max-width: 320px;
    margin: 10px auto;
  }
  .flabor-cta {
    height: auto;
    min-height: 200px;
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
  .flabor-cta .cta-title {
    font-size: 22px;
    line-height: 34px;
    white-space: normal;
    margin-right: 0;
    margin-bottom: 28px;
  }
}

/* =========================================================
   移动端正文文字降档：≤768 一档 / ≤576 一档
   ========================================================= */
@media (max-width: 767.98px) {
  .flabor-scene0 h2.scene-title,
  .flabor-scene1 h2.scene-title {
    font-size: 26px;
    height: 46px;
    line-height: 46px;
  }
  .flabor-content .flabor-item h2 {
    font-size: 18px;
    line-height: 26px;
  }
  .flabor-content .flabor-item p {
    font-size: 14px;
    line-height: 24px;
  }
}

@media (max-width: 575.98px) {
  .flabor-scene0 h2.scene-title,
  .flabor-scene1 h2.scene-title {
    font-size: 22px;
    height: 40px;
    line-height: 40px;
  }
  .flabor-content .flabor-item h2 {
    font-size: 16px;
    line-height: 24px;
  }
  .flabor-content .flabor-item p {
    font-size: 13px;
    line-height: 22px;
  }
}

/* =========================================================
   卓越能力四卡 · 移动端“一行两卡”
   （覆盖上述单列堆叠：解除固定 338px 高度，内容驱动 + 同行等高；
    两列时文字/图标等比缩小，保证卡内不溢出、留白比例协调）
   ========================================================= */
@media (max-width: 767.98px) {
  .flabor-content {
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    margin: 20px auto 0;
  }
  .flabor-item {
    width: calc(50% - 20px);
    max-width: none;
    height: auto;
    margin: 10px;
    padding: 26px 16px 28px;
    box-sizing: border-box;
  }
  .flabor-item .flabor-icon {
    width: 56px;
    height: 56px;
  }
  .flabor-item .flabor-icon svg {
    width: 44px;
    height: 44px;
  }
  .flabor-item h2 {
    margin-top: 16px;
  }
  .flabor-item p {
    width: auto;
    margin-top: 10px;
  }
}

@media (max-width: 575.98px) {
  .flabor-content {
    margin-top: 14px;
  }
  .flabor-item {
    width: calc(50% - 16px);
    margin: 8px;
    padding: 22px 12px 24px;
  }
  .flabor-item .flabor-icon {
    width: 48px;
    height: 48px;
  }
  .flabor-item .flabor-icon svg {
    width: 38px;
    height: 38px;
  }
  .flabor-item h2 {
    margin-top: 12px;
  }
  .flabor-item p {
    margin-top: 8px;
  }
}
