@import '../../common/header.css';
@import '../../common/footer.css';
@import '../../common/animate.min.css';
@import '../../common/pageTabs.less';

/* 设计稿 3840 → 落地 1920，内容区 2600→1300（与 .wrap 对齐），尺寸按 1/2 换算 */

.rongpin {
  color: #222;
  font-family: "Alibaba PuHuiTi 2", "PingFang SC", "Microsoft YaHei", sans-serif;
  padding-bottom: 0;

  &-h2 {
    margin-top: 65px;
    font-size: 50px;
    font-weight: bold;
    line-height: 60px;
    color: #222;
  }

  &-desc {
    margin-top: 20px;
    font-size: 20px;
    line-height: 1.5;
    color: #222;
  }

  /* ========== Hero 1300x405 ========== */
  &-hero {
    margin-top: 20px;
    width: 1300px;
    height: 405px;
    background: url("/public/assets/imgs/service/rongpin/hero-banner.png") center / 100% 100% no-repeat;
    box-sizing: border-box;
    padding: 64px 0 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 90px;

    &-copy {
      max-width: 568px;
    }

    &-title {
      font-size: 56px;
      font-weight: 800;
      line-height: 56px;
      color: #fff;
      white-space: nowrap;

      .hl {
        color: #a4d7ff;
      }
    }

    &-desc {
      margin-top: 17px;
      font-size: 20px;
      line-height: 28px;
      color: #fff;
    }

    &-kpis {
      display: flex;
      align-items: center;
      margin-left: 36px;
      width: 506px;
      justify-content: space-between;
    }

    &-kpi {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #fff;

      &-num {
        font-size: 25px;
        font-weight: bold;
        line-height: 25px;
      }

      &-label {
        margin-top: 5px;
        font-size: 16px;
        font-weight: 300;
        line-height: 25px;
        opacity: 0.95;
      }
    }
  }

  /* ========== 痛点双卡 ========== */
  &-pain {
    margin-top: 39px;
    display: flex;
    justify-content: space-between;

    &-card {
      width: 642px;
      min-height: 288px;
      background: #f5f7fa;
      border: 1px solid #e6e6e6;
      box-sizing: border-box;
      padding: 50px 60px 49px 60px;
    }

    &-icon {
      width: 74px;
      height: 74px;
      border-radius: 50%;
      background: #0b4aec;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 20px;

      img {
        width: 44px;
        height: 44px;
        object-fit: contain;
      }
    }

    &-title {
      margin-top: 21px;
      font-size: 30px;
      font-weight: 800;
      line-height: 38px;
      color: #0b4aec;
    }

    &-text {
      margin-top: 18px;
      font-size: 18px;
      font-weight: 600;
      line-height: 30px;
      color: #555;
    }
  }

  /* ========== 数据条 1299x299 ========== */
  &-stats {
    margin-top: 21px;
    width: 1300px;
    height: 299px;
    background: url("/public/assets/imgs/service/rongpin/stats-banner.png") center / 100% 100% no-repeat;
    box-sizing: border-box;
    padding: 57px 0 0 58px;
    color: #fff;

    &-title {
      font-size: 38px;
      font-weight: 800;
      line-height: 30px;
    }

    &-row {
      margin-top: 46px;
      display: flex;
      align-items: center;
      padding-left: 40px;
    }

    &-item {
      display: flex;
      align-items: center;

      &:last-child {
        margin-left: 100px;
      }
    }

    &-circle {
      width: 106px;
      height: 106px;
      background-size: 100% 100%;
      background-repeat: no-repeat;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      font-weight: 800;
      line-height: 1;
      flex-shrink: 0;
      color: #fff;

      &.c1 {
        background-image: url("/public/assets/imgs/service/rongpin/stats-circle-1.png");
      }

      &.c2 {
        background-image: url("/public/assets/imgs/service/rongpin/stats-circle-2.png");
      }
    }

    &-text {
      margin-left: 23px;
      width: 378px;
      font-size: 24px;
      font-weight: 500;
      line-height: 35px;
    }
  }

  /* ========== 转化流程 ========== */
  &-flow {
    margin-top: 55px;
    padding: 65px 0 70px;
    background: #f5f7fa;

    .rongpin-h2 {
      margin-top: 0;
    }

    &-sub {
      margin-top: 20px;
      font-size: 20px;
      color: #222;
      line-height: 20px;
    }

    /* 与 ICON 同轨：设计稿 section 2701 / 左 405 → 落地 1300 / 左 195 */
    &-pills {
      display: grid;
      grid-template-columns: repeat(3, 74px);
      justify-content: space-between;
      width: 1300px;
      padding: 0 195px;
      box-sizing: border-box;
      margin: 46px auto 0;

      &.bottom {
        margin-top: 24px;
      }

      &.top {
        margin-bottom: 0;
      }
    }

    &-pill-cell {
      width: 74px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    &-pill {
      height: 46px;
      padding: 0 23px;
      border-radius: 23px;
      border: 1px solid #e6e6e6;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      font-weight: 800;
      color: #222;
      cursor: pointer;
      transition: color 0.2s ease;
      user-select: none;
      white-space: nowrap;
      box-sizing: border-box;
      flex-shrink: 0;

      /* 悬停仅改文字色，边框/底色不变 */
      &:hover,
      &.hot {
        color: #0b4aec;
        border-color: #e6e6e6;
        background: #fff;
      }
    }

    &-stage {
      width: 1300px;
      /* 圆环切图 2701x767，按宽等比：1300 * 767 / 2701 */
      height: 369px;
      margin: 21px auto 0;
      background-size: 100% 100%;
      background-repeat: no-repeat;
      background-position: center;
      position: relative;
      box-sizing: border-box;
    }

    /* 三列容器：上下 node 共用同一列，保证竖向对齐 */
    &-cols {
      position: absolute;
      left: 0;
      right: 0;
      top: -10px;
      bottom: -10px;
      display: grid;
      grid-template-columns: repeat(3, 74px);
      justify-content: space-between;
      padding: 0 195px;
      box-sizing: border-box;
      z-index: 3;
      pointer-events: none;
    }

    &-col {
      position: relative;
      height: 100%;
    }

    &-slot {
      position: absolute;
      left: 0;
      width: 74px;
      display: flex;
      flex-direction: column;
      align-items: center;
      pointer-events: auto;

      &.top {
        top: 0;
      }

      &.bot {
        bottom: 0;
      }
    }

    &-node {
      width: 74px;
      height: 74px;
      border-radius: 50%;
      background: #0b4aec;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 4px 12px rgba(11, 74, 236, 0.25);
      flex-shrink: 0;

      img {
        width: 39px;
        height: 39px;
        object-fit: contain;
      }

      .rongpin-flow-slot.hot & {
        transform: scale(1.08);
        box-shadow: 0 0 0 4px rgba(11, 74, 236, 0.2), 0 8px 20px rgba(11, 74, 236, 0.3);
      }
    }

    /* 详情气泡：默认隐藏，悬停显示；01-03 在 ICON 下，04-06 在 ICON 上
       A 卡箭头朝上、B 卡箭头朝下，均不再做旋转，避免文字超出边框 */
    &-tip {
      position: absolute;
      left: 50%;
      width: 280px;
      height: 120px;
      margin-left: -140px;
      background-size: 100% 100%;
      background-repeat: no-repeat;
      background-position: center;
      box-sizing: border-box;
      /* 四周留白，避开圆角边框与箭头区域 */
      padding: 22px 28px 28px;
      z-index: 5;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      overflow: hidden;

      &.below {
        top: 82px;
        /* 箭头在上，底部多留一点 */
        padding: 28px 28px 20px;
      }

      &.above {
        bottom: 82px;
        /* 箭头在下，底部多留一点给箭头 */
        padding: 20px 28px 32px;
      }

      &-title {
        font-size: 16px;
        font-weight: 800;
        color: #222;
        line-height: 1.3;
        max-width: 100%;
      }

      &-text {
        margin-top: 8px;
        font-size: 13px;
        line-height: 20px;
        color: #222;
        max-width: 100%;

        span {
          font-weight: 600;
        }
      }
    }

    &-center {
      position: absolute;
      left: 0;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      text-align: center;
      z-index: 1;
      pointer-events: none;

      &-title {
        font-size: 40px;
        font-weight: 600;
        color: #0b4aec;
        line-height: 50px;
      }

      &-path {
        margin-top: 12px;
        font-size: 20px;
        font-weight: 600;
        color: #222;
        line-height: 22px;

        i {
          color: #888;
          font-style: normal;
          margin: 0 4px;
        }
      }
    }
  }

  /* ========== 资源分配 ========== */
  &-resource {
    margin-top: 48px;
    width: 1300px;
    height: 155px;
    background: #fff;
    border: 2px solid #0b4aec;
    border-radius: 76px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 38px 0 38px;

    &-head {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      flex-shrink: 0;
      width: 292px;

      img {
        width: 33px;
        height: 33px;
        object-fit: contain;
        /* 与蓝色标题行（24px / 1.2 ≈ 29px）水平居中对齐 */
        margin-top: -2px;
        flex-shrink: 0;
      }
    }

    &-title {
      font-size: 24px;
      font-weight: 800;
      color: #0b4aec;
      line-height: 1.2;
    }

    &-sub {
      margin-top: 10px;
      font-size: 16px;
      font-weight: 500;
      color: #222;
    }

    &-list {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }

    &-item {
      text-align: center;
      padding: 0 28px;
      position: relative;

      &:not(.last)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 58px;
        background: #e6e6e6;
      }
    }

    &-num {
      font-size: 32px;
      font-weight: 800;
      color: #0b4aec;
      line-height: 1.2;
    }

    &-label {
      margin-top: 10px;
      font-size: 16px;
      font-weight: 500;
      color: #222;
      white-space: nowrap;
    }
  }

  /* ========== 服务包 ========== */
  /* 与 .rongpin-flow 同色灰底 */
  &-packs-sec {
    background: #f5f7fa;
    padding: 65px 0 70px;

    .rongpin-h2 {
      margin-top: 0;
    }
  }

  &-packs {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
  }

  &-pack {
    width: 638px;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-sizing: border-box;
    padding: 44px 40px 46px;
    display: flex;
    flex-direction: column;

    &-tag {
      width: 99px;
      height: 32px;
      border-radius: 16px;
      border: 1.5px solid #0b4aec;
      background: #f2f7ff;
      color: #0b4aec;
      font-size: 14px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    &-name {
      margin-top: 13px;
      font-size: 30px;
      font-weight: bold;
      color: #222;
      line-height: 1.2;
    }

    &-intro {
      margin-top: 10px;
      font-size: 14px;
      line-height: 22px;
      color: #555;
      min-height: 44px;
    }

    &-price {
      margin-top: 28px;
      display: flex;
      align-items: baseline;
      gap: 8px;

      .num {
        font-size: 46px;
        font-weight: bold;
        color: #222;
        line-height: 1;
      }

      .unit {
        font-size: 16px;
        font-weight: 600;
        color: #222;
      }
    }

    &-divider {
      margin-top: 16px;
      height: 1px;
      background: #e6e6e6;
    }

    &-label {
      margin-top: 23px;
      font-size: 16px;
      font-weight: 800;
      color: #222;
    }

    &-goal {
      margin-top: 12px;
      font-size: 22px;
      font-weight: bold;
      color: #0b4aec;
      line-height: 1.4;
    }

    &-chips {
      margin-top: 15px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px 6px;

      /* 设计稿交付标签：浅蓝底 #F2F7FF + 圆角胶囊 + 蓝字 */
      span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 32px;
        padding: 0 16px;
        box-sizing: border-box;
        background: #f2f7ff;
        border-radius: 16px;
        color: #0b4aec;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        white-space: nowrap;
      }
    }

    &-blocks {
      margin-top: 26px;
      flex: 1;
    }

    &-block {
      margin-top: 26px;

      &:first-child {
        margin-top: 0;
      }

      &-title {
        font-size: 18px;
        font-weight: bold;
        color: #0b4aec;
        line-height: 1.3;
      }

      &-text {
        margin-top: 10px;
        font-size: 14px;
        line-height: 26px;
        color: #555;
      }
    }

    &-cta {
      margin-top: 36px;
      height: 57px;
      border-radius: 29px;
      background: #0b4aec;
      color: #fff;
      font-size: 18px;
      font-weight: 400;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      user-select: none;
      transition: opacity 0.2s ease;

      &:hover {
        opacity: 0.92;
      }
    }
  }

  /* ========== 合作对象 ========== */
  &-coop {
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
    gap: 20px;

    &-card {
      width: 420px;
      background: #f5f7fa;
      border: 1px solid #e6e6e6;
      box-sizing: border-box;
      overflow: hidden;
    }

    &-img {
      width: 100%;
      height: 205px;
      object-fit: cover;
      display: block;
    }

    &-body {
      padding: 28px 40px 40px;
    }

    &-no {
      font-size: 28px;
      font-weight: 800;
      color: #0b4aec;
      line-height: 1.2;
    }

    &-title {
      margin-top: 18px;
      font-size: 28px;
      font-weight: 400;
      color: #222;
      line-height: 1.4;
    }

    &-text {
      margin-top: 12px;
      font-size: 16px;
      line-height: 1.6;
      color: #555;
    }
  }

  /* ========== 问答 ========== */
  /* 设计稿：问 #F5F7FA 灰气泡；答 #0B4AEC 蓝气泡白字，大圆角 */
  &-qa {
    margin-top: 70px;
    margin-bottom: 0;
    background: transparent;
    border: none;
    padding: 0;

    &-head {
      text-align: center;
    }

    &-title {
      font-size: 32px;
      font-weight: bold;
      color: #222;
      line-height: 30px;
    }

    &-status {
      margin-top: 14px;
      font-size: 18px;
      font-weight: 500;
      color: #0b4aec;
      line-height: 30px;
    }

    &-body {
      margin-top: 13px;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      gap: 20px;
      min-height: 310px;
    }

    &-role {
      width: 78px;
      flex-shrink: 0;
      text-align: center;
      font-size: 22px;
      font-weight: bold;
      color: #222;
      line-height: 22px;

      &.left {
        margin-top: 0;
      }

      &.right {
        margin-top: 96px;
      }

      img {
        width: 78px;
        height: 78px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        margin: 0 auto 13px;
      }
    }

    &-dialog {
      width: 978px;
      flex-shrink: 0;
      position: relative;
      min-height: 280px;
      margin-top: 30px;
    }

    /* 问：灰底 + 灰边 + 大圆角，偏左 */
    &-q {
      display: block;
      width: 302px;
      min-height: 70px;
      box-sizing: border-box;
      background: #f5f7fa;
      border: 1px solid #e6e6e6;
      border-radius: 30px;
      padding: 20px 28px;
      font-size: 18px;
      font-weight: 400;
      color: #222;
      line-height: 26px;
    }

    /* 答：蓝底白字大圆角气泡，偏右（靠近萤火AI） */
    &-a {
      margin-top: 26px;
      margin-left: 280px;
      width: 698px;
      min-height: 185px;
      box-sizing: border-box;
      background: #0b4aec;
      border-radius: 30px;
      padding: 29px 46px;
      font-size: 18px;
      font-weight: 400;
      line-height: 26px;
      color: #fff;
    }
  }

  /* ========== 政策条 全宽 ========== */
  /* 设计稿：标题/说明在左上，按钮在文案下方（非右侧横排） */
  &-policy {
    margin-top: 54px;
    width: 100%;
    min-height: 245px;
    background: url("/public/assets/imgs/service/rongpin/policy-banner.png") center / cover no-repeat;

    &-inner {
      min-height: 245px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      box-sizing: border-box;
      padding: 54px 0 40px;
    }

    &-title {
      font-size: 38px;
      font-weight: bold;
      color: #fff;
      line-height: 50px;
    }

    &-text {
      margin-top: 16px;
      max-width: 754px;
      font-size: 16px;
      line-height: 24px;
      color: #b7dfff;

      em {
        font-style: normal;
        font-size: 20px;
        font-weight: 800;
        color: #b7dfff;
      }
    }

    &-cta {
      margin-top: 14px;
      width: 190px;
      height: 49px;
      box-sizing: border-box;
      border-radius: 25px;
      background: transparent;
      border: 1.5px solid #fff;
      color: #fff;
      font-size: 18px;
      font-weight: 400;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      user-select: none;
      transition: background 0.2s ease;

      &:hover {
        background: rgba(255, 255, 255, 0.12);
      }
    }
  }
}
