/* ========================================
   中信保功能组合样式 - show_function_cmpbg.css
   包含：6个功能卡片 + 生命周期流程 + 协同体系 + 3个治理卡片
   ======================================== */

/* ==================== 基础动画与通用效果 ==================== */

@keyframes flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* 卡片悬停效果 */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 103, 252, 0.15);
}

/* 点阵背景 */
.dot-pattern {
  background-image: radial-gradient(circle, #0067FC 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
}


/* ==================== 第一部分：6个功能卡片样式（图1） ==================== */

.cmpbg-section .max-w-content {
  max-width: 1200px;
  box-sizing: border-box;
}

.cmpbg-section .section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #0067fc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* 功能卡片基础样式 */
.cmpbg-section .card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cmpbg-section .card:hover {
  transform: translateY(-4px);
  border-color: rgba(3, 184, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 103, 252, 0.15);
}

/* 卡片图标容器 */
.cmpbg-section .icon-box {
  display: flex;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.cmpbg-section .icon-box img,
.cmpbg-section .icon-box svg {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}


/* ==================== 第二部分：生命周期流程样式（图2） ==================== */

/* 流程步骤圆圈 */
.cmpbg-section .step-circle {
  position: relative;
  z-index: 1;
  display: flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0067fc, #03b8ff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 0 6px rgba(0, 103, 252, 0.08);
}

.cmpbg-section .step-circle.pulse {
  animation: cmpbg-step-pulse 2.5s ease-in-out infinite;
}

/* 流程连接线 */
.cmpbg-section .workflow-connector {
  background: linear-gradient(90deg, #0067fc, #03b8ff, #0067fc);
  background-size: 200% 100%;
  animation: cmpbg-connector-flow 4s linear infinite;
}

#steps-desktop > .workflow-connector {
  position: absolute;
  top: 20px;
  right: 10%;
  left: 10%;
  height: 2px;
}

#steps-desktop .step-node {
  min-width: 0;
}

#steps-desktop .step-node > p {
  width: 160px;
  max-width: 160px;
  margin-right: auto;
  margin-left: auto;
}

/* 流程节点头像占位 */
.cmpbg-section .avatar-placeholder {
  display: flex;
  width: 80px;
  height: 80px;
  margin-right: auto;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f5f7fa;
  box-shadow: 0 0 0 6px rgba(0, 103, 252, 0.06);
}

.cmpbg-section .avatar-placeholder svg {
  width: 40px;
  height: 40px;
}

/* 动画定义 */
@keyframes cmpbg-step-pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(0, 103, 252, 0.08);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(0, 103, 252, 0.03);
  }
}

@keyframes cmpbg-connector-flow {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes cmpbg-connector-flow-vertical {
  0% {
    background-position: 0 200%;
  }
  100% {
    background-position: 0 -200%;
  }
}


/* ==================== 第三部分：协同体系样式（图3） ==================== */

#cmpbg-collab {
  --supplier-brand: hsl(217 100% 49%);
  --supplier-text: hsl(220 13% 13%);
  --supplier-text-secondary: hsl(220 9% 46%);
  --supplier-text-muted: hsl(220 9% 60%);
  --supplier-border: hsl(220 13% 91%);
  --supplier-bg: hsl(220 14% 96%);
}

#cmpbg-collab .text-text-muted {
  color: var(--supplier-text-muted);
}

#cmpbg-collab .text-brand {
  color: var(--supplier-brand);
}

#cmpbg-collab .bg-brand\/10 {
  background-color: hsla(217, 100%, 49%, 0.1);
}

#cmpbg-collab .bg-bg {
  background-color: var(--supplier-bg);
}

#cmpbg-collab .border-border {
  border-color: var(--supplier-border);
}

#cmpbg-collab .mb-1\.5 {
  margin-bottom: 0.375rem;
}

#cmpbg-collab .py-14 {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}


/* ==================== 第四部分：3个精细化管理卡片样式（图4） ==================== */

.cmpbg-governance-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 0 !important;
}

.cmpbg-section .cmpbg-governance-card {
  width: 26% !important;
  flex: 0 0 26% !important;
  max-width: 26% !important;
}

.cmpbg-governance-icon {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.cmpbg-governance-icon img,
.cmpbg-governance-icon svg {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* 卡片标题样式 - 覆盖 h3 默认 margin */
.cmpbg-governance-card h3 {
  margin-top: 20px !important;
  margin-bottom: 12px !important;
}


/* ==================== 第四部分：协同体系样式（图4） ==================== */

#collab-system {
  --supplier-brand: hsl(217 100% 49%);
  --supplier-text: hsl(220 13% 13%);
  --supplier-text-secondary: hsl(220 9% 46%);
  --supplier-border: hsl(220 13% 91%);
  --supplier-bg: hsl(220 14% 96%);
}

/* 图片容器 hover 效果：上浮 + 品牌蓝投影 */
#collab-system .img-container-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#collab-system .img-container-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 103, 252, 0.2) !important;
}


/* ==================== 响应式适配 ==================== */

@media (max-width: 1023px) {
  .cmpbg-section .workflow-connector {
    background: linear-gradient(180deg, #0067fc, #03b8ff, #0067fc);
    background-size: 100% 200%;
    animation-name: cmpbg-connector-flow-vertical;
  }

  .cmpbg-section .whitespace-nowrap {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .cmpbg-governance-card {
    flex-basis: 100%;
  }
}

@media (max-width: 639px) {
  .cmpbg-governance-card {
    flex-basis: 100%;
  }
}

/* 减少动画（用户偏好设置） */
@media (prefers-reduced-motion: reduce) {
  .cmpbg-section .step-circle.pulse,
  .cmpbg-section .workflow-connector {
    animation: none;
  }

  .card-hover {
    transition: none;
  }

  .card-hover:hover {
    transform: none;
  }
}
