/* 文件描述：产品兼容性认证页样式（前缀 cp-，对齐 training/compatibility 结构） */

body.cp-page {
  padding-top: 0;
  color: var(--on-surface);
}

.cp-container {
  width: 100%;
  overflow: hidden;
}

/* 内页头部 Banner 样式见 common/inner-topbanner.css */

/* ── 按钮 ── */
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 32px;
  border-radius: var(--r8);
  font-size: var(--fs-16);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.cp-btn:active {
  transform: scale(0.98);
}

.cp-btn--primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.cp-btn--primary:hover {
  background: var(--slate-100);
  color: var(--primary);
}

.cp-btn--cta {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  min-width: 160px;
}

.cp-btn--cta:hover {
  background: var(--slate-100);
  color: var(--primary);
}

/* ── 区块标题 ── */
.cp-section-title {
  margin: 0;
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--on-surface);
}

/* ── 如何申请 ── */
.cp-steps {
  padding: clamp(64px, calc(100vw * 80 / 1440), 80px) var(--container-px);
  background-color: #fff;
  background-image: linear-gradient(180deg, #639ce133 0%, #639ce113 60%, #639ce100 100%);
  background-repeat: no-repeat;
  background-size: 100% 198px;
}

.cp-steps .cp-section-title {
  font-weight: 700;
  color: var(--slate-900);
}

.cp-steps-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, calc(100vw * 20 / 1440), 20px);
  margin: clamp(40px, calc(100vw * 50 / 1440), 50px) auto 0;
  padding: 0;
  list-style: none;
  max-width: var(--container-max);
}

.cp-steps-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(100px, calc(100vw * 106 / 1440), 106px);
  padding:0 clamp(12px, calc(100vw * 16 / 1440), 16px)   0;
  text-align: center;
  background: linear-gradient(294deg, #f0f4f6 9%, #f7fafc00 85%), #FFFFFF;
  border-radius: var(--r8);
  
}

.cp-steps-num {
  position: absolute;
  top: clamp(-26px, calc(100vw * -40 / 1440), -40px);
  right: clamp(10px, calc(100vw * 16 / 1440), 16px);
  font-size: clamp(44px, calc(100vw * 68 / 1440), 68px);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(180deg, #0b66b2 23%, #0b66b200 76%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  width: 80px;

}

.cp-steps-text {
  margin: 0;
  font-size: clamp(14px, calc(100vw * 18 / 1440), 18px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--primary);
}

/* ── 互认证生态 ── */
.cp-eco {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--container-px) 80px;
  background: linear-gradient(180deg, #f8fafc 0%, #f8fafc00 100%);
}

.cp-eco-title {
  margin: 80px 0 0;
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--on-surface);
}

.cp-eco-desc {
  max-width: 900px;
  margin: 40px 0 60px;
  font-size: var(--fs-14);
  line-height: 1.875;
  text-align: center;
  color: var(--primary-dec);
}

.cp-types-wrap {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.cp-types-track {
  display: flex;
  flex-direction: row;
  width: max-content;
  animation: cp-types-marquee 80s linear infinite;
}

.cp-types-track.is-paused {
  animation-play-state: paused;
}

@keyframes cp-types-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cp-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  margin: 0 10px;
  padding: 14px 20px 12px;
  background: #fff;
  border-radius: var(--r8);
}

.cp-type-icon {
  width: 65px;
  height: 65px;
  background-size: auto 65px;
  background-repeat: no-repeat;
  background-position: center center;
}

.cp-type-icon--1 { 
  background-image: url(/static/skin/images/training/compat/block-2-icon-1.webp);
 }
.cp-type-icon--2 { 
  background-image: url(/static/skin/images/training/compat/block-2-icon-2.webp);
 }
.cp-type-icon--3 { 
  background-image: url(/static/skin/images/training/compat/block-2-icon-3.webp);
 }
.cp-type-icon--4 { 
  background-image: url(/static/skin/images/training/compat/block-2-icon-4.webp);
 }
.cp-type-icon--5 { 
  background-image: url(/static/skin/images/training/compat/block-2-icon-5.webp);
 }
.cp-type-icon--6 { 
  background-image: url(/static/skin/images/training/compat/block-2-icon-6.webp);
 }
.cp-type-icon--7 { 
  background-image: url(/static/skin/images/training/compat/block-2-icon-7.webp);
 }
.cp-type-icon--8 { 
  background-image: url(/static/skin/images/training/compat/block-2-icon-8.webp);
 }
.cp-type-icon--9 { 
  background-image: url(/static/skin/images/training/compat/block-2-icon-9.webp);
 }

.cp-type-name {
  margin-top: 8px;
  font-size: 14px;
  color: var(--on-surface);
}

/* ── 生态伙伴 ── */
.cp-partners {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px var(--container-px) 120px;
}

.cp-partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 10px;
  margin-top: 30px;
}

.cp-partners-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(25% - 12px);
  min-width: 240px;
  height: 120px;
  background: var(--slate-50, #f3f5f9);
  border-radius: var(--r8);
}

.cp-partners-item img {
  max-width: 80%;
  max-height: 80px;
  object-fit: contain;
}

/* ── 底部 CTA ── */
.cp-cta {
  background: url(/static/skin/images/training/compat/download-bg.webp) center / cover no-repeat;
  padding: clamp(56px, calc(100vw * 72 / 1920), 72px) var(--container-px);
  text-align: center;
}

.cp-cta-inner {
  width: 100%;
  max-width: min(var(--container-max), 100%);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.cp-cta-title {
  margin: 0 0 clamp(20px, calc(100vw * 28 / 1920), 28px);
  font-size: clamp(22px, calc(100vw * 32 / 1920), 32px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--slate-900);
}

.cp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cp-cta .btn-primary {
  --hero-btn-icon: min(30px, calc(var(--hero-btn-height) * 0.75));
  box-sizing: border-box;
  min-width: clamp(120px, calc(100vw * 150 / 1920), 150px);
  height: var(--hero-btn-height);
  padding: 0 clamp(16px, calc(100vw * 24 / 1920), 24px);
  font-size: var(--fs-20);
  font-weight: 500;
  border-radius: var(--r8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, calc(100vw * 7 / 1920), 7px);
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1;
  white-space: nowrap;
}

.cp-cta .btn-primary .svg_span {
  width: var(--hero-btn-icon);
  height: var(--hero-btn-icon);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.cp-cta .btn-primary .svg_span svg {
  width: 55%;
  height: 55%;
  transform: rotate(-35deg);
}

.cp-cta .btn-primary:hover {
  background: var(--primary-container);
}

/* ── 响应式 ── */
@media screen and (max-width: 1060px) {
  .cp-steps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-partners-item {
    width: 100%;
    max-width: 320px;
  }

  .cp-partners-grid {
    justify-content: center;
  }

  .cp-eco {
    padding-left: 5%;
    padding-right: 5%;
  }
}

@media screen and (max-width: 768px) {
  .cp-steps,
  .cp-partners {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cp-steps-list {
    gap:30px 10px;
  }

  .cp-steps-num{
     top:-15px;
     right: 0;
  }

  .cp-types-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .cp-types-wrap::-webkit-scrollbar {
    display: none;
  }

  .cp-types-track {
    animation: cp-types-marquee 60s linear infinite;
  }

  .cp-type-card {
    width: calc((90vw - 40px) / 4);
    min-width: calc((90vw - 40px) / 4);
    height: auto;
    min-height: 96px;
    margin: 0 5px;
    padding: 10px 6px 8px;
    scroll-snap-align: start;
  }

  .cp-type-icon {
    width: 44px;
    height: 45px;
    background-size: auto 45px;
  }

  .cp-type-name {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
  }

  .cp-cta-actions {
    justify-content: center;
  }

  .cp-cta .btn-primary {
    width: 100%;
    max-width: 320px;
  }
}
