/* Blueiot Partner Program V2：视觉数值以 .agents/audits/v2-figma/bpp.md 为准。 */
.v2-bpp-page {
  overflow: hidden;
  background: #f5f5f7;
}

.v2-bpp-page *,
.v2-bpp-page *::before,
.v2-bpp-page *::after {
  box-sizing: border-box;
}

.v2-bpp-page img {
  display: block;
}

.v2-bpp-page button,
.v2-bpp-page input,
.v2-bpp-page textarea {
  font: inherit;
}

.v2-bpp-hero {
  position: relative;
  height: 30rem;
  overflow: hidden;
}

.v2-bpp-hero-image {
  position: absolute;
  top: -0.42%;
  left: -0.5%;
  width: 101.05%;
  max-width: none;
  height: 101.25%;
}

.v2-bpp-hero-inner {
  height: 100%;
  padding-top: 5.75rem;
}

.v2-bpp-hero-title {
  margin: 0;
  font-family: "Gotham-Bold", sans-serif;
  font-size: 2.75rem;
  line-height: normal;
  color: #323232;
}

.v2-bpp-hero-copy {
  width: 43rem;
  margin: 0.625rem 0 0;
  font-family: "Gotham-Book", sans-serif;
  font-size: 1.375rem;
  line-height: normal;
  color: #323232;
}

.v2-bpp-hero-actions {
  display: flex;
  gap: 1.875rem;
  margin-top: 2.375rem;
}

/* Hero 按钮：圆角、内边距、字号按 Figma 显式覆盖，不依赖 .v2-btn 默认值 */
.v2-bpp-page .v2-bpp-hero-actions .v2-btn {
  width: auto;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-width: 0.0625rem;
  border-style: solid;
  font-family: "Gotham-Medium", sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: normal;
}

.v2-bpp-page .v2-bpp-hero-primary,
.v2-bpp-page .v2-bpp-hero-primary:visited {
  width: 17rem;
  border-color: #008cff;
  border-radius: 6.25rem;
  background: #008cff;
  color: #fff;
}

.v2-bpp-page .v2-bpp-hero-primary:hover {
  border-color: #72bfff;
  background: #72bfff;
  color: #fff;
}

.v2-bpp-page .v2-bpp-hero-primary:active {
  border-color: #0067bb;
  background: #0067bb;
}

.v2-bpp-page .v2-bpp-hero-login {
  width: 8.75rem;
  border-color: #323232;
  border-radius: 7.5rem;
  background: transparent;
  color: #323232;
}

/* 对齐首页 .v2-btn-outline 规范：悬停蓝底白字 */
.v2-bpp-page .v2-bpp-hero-login:hover {
  border-color: #008cff;
  background: #008cff;
  color: #fff;
}

.v2-bpp-page .v2-bpp-hero-login:active {
  border-color: #0067bb;
  background: #0067bb;
  color: #fff;
}

.v2-bpp-section {
  padding-top: 4.5625rem;
}

.v2-bpp-section-head {
  margin: 0;
}

.v2-bpp-section-title {
  margin: 0;
  font-family: "Gotham-Bold", sans-serif;
  font-size: 2.75rem;
  line-height: normal;
  color: #323232;
}

.v2-bpp-section-copy {
  width: 58.8125rem;
  margin: 0.8125rem 0 0;
  font-family: "Gotham-Book", sans-serif;
  font-size: 1.375rem;
  line-height: normal;
  color: #323232;
}

.v2-bpp-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.v2-bpp-benefit-card {
  box-sizing: border-box;
  height: 21.625rem;
  padding: 1.875rem 3.125rem;
  border-radius: 1.125rem;
  background: #fff;
  box-shadow: 0 0 0.625rem rgba(34, 50, 72, 0.1);
}

.v2-bpp-benefit-card--tall {
  height: 23.3125rem;
}

.v2-bpp-benefit-icon {
  width: 4.375rem;
  height: 4.375rem;
  object-fit: contain;
}

.v2-bpp-benefit-title {
  margin: 1.5rem 0 0;
  font-family: "Gotham-Bold", sans-serif;
  font-size: 1.875rem;
  line-height: normal;
  color: #323232;
}

.v2-bpp-benefit-list {
  margin: 1.125rem 0 0;
  padding: 0;
  list-style: none;
}

.v2-bpp-benefit-list li {
  position: relative;
  margin-top: 0.5625rem;
  padding-left: 1.375rem;
  white-space: nowrap;
  font-family: "Gotham-Book", sans-serif;
  font-size: 1.25rem;
  line-height: normal;
  color: #323232;
}

.v2-bpp-benefit-list li:first-child {
  margin-top: 0;
}

/* 设计稿里需要折行的条目：文本框宽度 + 22（左侧 check 占位）。
   Revenue 499 / Marketing 575 / Training 520、525 / Portal 474，其余条目单行不换行 */
.v2-bpp-benefit-list .v2-bpp-benefit-wrap {
  box-sizing: border-box;
  white-space: normal;
}

.v2-bpp-benefit-list .v2-bpp-benefit-wrap--revenue {
  max-width: 32.5625rem;
}

.v2-bpp-benefit-list .v2-bpp-benefit-wrap--marketing {
  max-width: 37.3125rem;
}

.v2-bpp-benefit-list .v2-bpp-benefit-wrap--training-a {
  max-width: 33.875rem;
}

.v2-bpp-benefit-list .v2-bpp-benefit-wrap--training-b {
  max-width: 34.1875rem;
}

.v2-bpp-benefit-list .v2-bpp-benefit-wrap--portal {
  max-width: 31rem;
}

.v2-bpp-benefit-list li::before {
  position: absolute;
  top: 0.25rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  background: url("/uploads/image/v2/bpp/icons/check.svg") center / contain no-repeat;
  content: "";
}

.v2-bpp-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.v2-bpp-role-card {
  box-sizing: border-box;
  height: 21.875rem;
  padding: 1.75rem 2.5rem 1.5rem;
  border-radius: 1.125rem;
  background: #fff;
  box-shadow: 0 0 0.625rem rgba(34, 50, 72, 0.1);
  text-align: center;
}

.v2-bpp-role-image {
  width: 9.375rem;
  height: 9.375rem;
  margin: 0 auto;
  object-fit: contain;
}

.v2-bpp-role-title {
  margin: 1.625rem 0 0;
  font-family: "Gotham-Bold", sans-serif;
  font-size: 1.625rem;
  line-height: normal;
  color: #323232;
}

.v2-bpp-role-copy {
  width: 24.3125rem;
  max-width: 100%;
  margin: 0.5625rem auto 0;
  font-family: "Gotham-Book", sans-serif;
  font-size: 1.25rem;
  line-height: normal;
  color: #323232;
}

/* 角色卡正文文本框宽度（Figma）：Reseller 389；Developer / Consultant / Tag 352；Provider 336；Integrator 337。均为三行，不允许单词独占一行 */
.v2-bpp-role-copy--narrow {
  width: 22rem;
}

.v2-bpp-role-copy--provider {
  width: 21rem;
}

.v2-bpp-role-copy--integrator {
  width: 21.0625rem;
}

.v2-bpp-section-copy--steps {
  width: 61.875rem;
}

/* Steps：三列 flex 布局（与 v2_manufacturing / v2_logistics 的 Cases 一致）。
   Figma 2815:6336：白卡 1520×499；三列卡各 420，间距 70，左内距 63。
   63 + 420×3 + 70×2 = 1463，右侧剩 57（与稿一致）。
   时间轴 63→1463，横跨三列卡片区。 */
.v2-bpp-steps {
  position: relative;
  display: flex;
  gap: 4.375rem;
  /* 卡片顶相对白卡 146（Figma 312−166）；标签/圆点/三角负偏移置于上方。
     左内距 63、右内距 57（1463 → 1520），与稿一致 */
  margin-top: 3rem;
  padding: 9.125rem 3.5625rem 3.75rem 3.9375rem;
  border-radius: 1.125rem;
  background: #fff;
}

.v2-bpp-step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

/* 时间轴横线：相对白卡顶 109（Figma y275−166），横跨三列卡片区 63→1463 */
.v2-bpp-steps::before {
  position: absolute;
  top: 6.8125rem;
  left: 3.9375rem;
  right: 3.5625rem;
  height: 0.25rem;
  background: #e9e7e7;
  content: "";
}

/* Step 标签：相对白卡 56，卡片顶 146 → 负偏移 90；水平相对卡片左起 43 */
.v2-bpp-step-label {
  position: absolute;
  top: -5.625rem;
  left: 2.6875rem;
  font-family: "Gotham-Bold", sans-serif;
  font-size: 1.5rem;
  line-height: normal;
  color: #323232;
}

/* 时间轴圆点：相对白卡 102 → 负偏移 44；水平相对卡片左起 70 */
.v2-bpp-step-dot {
  position: absolute;
  top: -2.75rem;
  left: 4.375rem;
  width: 1.25rem;
  height: 1.25rem;
}

.v2-bpp-step-card {
  position: relative;
  min-height: 18.3125rem;
  padding: 1.625rem 2.5rem;
  border-radius: 0.875rem;
  background: #e2f2ff;
}

/* 卡片上沿三角指示：相对卡片左起 68 */
.v2-bpp-step-pointer {
  position: absolute;
  top: -0.8125rem;
  left: 4.25rem;
  width: 1.5rem;
  height: 1.375rem;
}

.v2-bpp-step-icon {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: contain;
}

.v2-bpp-step-title {
  margin: 1rem 0 0;
  font-family: "Gotham-Bold", sans-serif;
  font-size: 1.375rem;
  line-height: normal;
  color: #323232;
}

.v2-bpp-step-copy {
  margin: 0.75rem 0 0;
  font-family: "Gotham-Book", sans-serif;
  font-size: 1.25rem;
  line-height: normal;
  color: #323232;
}

/* Step 正文文本框宽度（Figma）：Step 1 为 320，Step 2 为 259，Step 3 为 282 */
.v2-bpp-step-copy--demo {
  width: 20rem;
}

.v2-bpp-step-copy--training {
  width: 16.1875rem;
}

.v2-bpp-step-copy--register {
  width: 17.625rem;
}

/* 联系表单：复用 V2 公共 snippet form_new（#tg-contact），样式随组件自带。
   本页只负责锚点定位与滚动偏移。 */
#v2-bpp-apply {
  scroll-margin-top: 7.5rem;
}

@media (max-width: 47.99rem) {
  /* 仅窄于移动端边界时，Steps 从绝对定位改为纵向流，避免溢出；
     完整移动端样式见 mobile/css/bpp.css（该文件在 ≤767 时生效） */
  .v2-bpp-steps {
    flex-direction: column;
    gap: 0;
    padding: 2.375rem 1.75rem 2.5rem 4.625rem;
  }

  /* 纵向流下不再需要横向时间轴 */
  .v2-bpp-steps::before {
    display: none;
  }

  .v2-bpp-step + .v2-bpp-step {
    margin-top: 2.25rem;
  }

  /* 标签与圆点回到正常文档流，避免负偏移在纵向排列时重叠 */
  .v2-bpp-step-label,
  .v2-bpp-step-dot {
    position: static;
  }

  .v2-bpp-step-dot {
    display: none;
  }

  .v2-bpp-step-card {
    margin-top: 1.25rem;
  }
}

/* 移动端布局统一由 public/assets/v2/mobile/css/bpp.css 负责（link media 控制加载）。
   桌面 CSS 不再包含 ≤767 的布局块，避免与移动端样式重复生效、互相覆盖。 */

