/* ==================== 板材智能化排版 - 样式文件 ==================== */

/* ---------- #collab-system 第一个 section 的样式 ---------- */
#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%);
}

/* Tailwind 工具类实现 */
#collab-system .flex {
  display: flex;
}

#collab-system .flex-col {
  flex-direction: column;
}

#collab-system .flex-row {
  flex-direction: row;
}

#collab-system .flex-1 {
  flex: 1 1 0%;
}

#collab-system .gap-4 {
  gap: 1rem;
}

#collab-system .gap-12 {
  gap: 3rem;
}

#collab-system .lg\:gap-16 {
  gap: 4rem;
}

#collab-system .items-center {
  align-items: center;
}

#collab-system .min-w-0 {
  min-width: 0;
}

#collab-system .shrink-0 {
  flex-shrink: 0;
}

#collab-system .mt-0\.5 {
  margin-top: 0.125rem;
}

/* space-y-6: 子元素之间垂直间距 24px */
#collab-system .space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* 图标容器 */
#collab-system .w-8 {
  width: 2rem;
}

#collab-system .h-8 {
  height: 2rem;
}

#collab-system .rounded-full {
  border-radius: 9999px;
}

/* 文字样式 */
#collab-system .font-bold {
  font-weight: 700;
}

#collab-system .text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

#collab-system .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

#collab-system .text-gray-900 {
  color: rgb(17 24 39);
}

#collab-system .text-gray-600 {
  color: rgb(75 85 99);
}

#collab-system .leading-relaxed {
  line-height: 1.625;
}

/* 图片容器 */
#collab-system .w-full {
  width: 100%;
}

#collab-system .h-auto {
  height: auto;
}

#collab-system .block {
  display: block;
}

#collab-system .rounded-2xl {
  border-radius: 1rem;
}

#collab-system .overflow-hidden {
  overflow: hidden;
}

/* 图片容器 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 (min-width: 1024px) {
  #collab-system .lg\:flex-row {
    flex-direction: row;
  }

  #collab-system .lg\:gap-16 {
    gap: 4rem;
  }
}

/* ---------- 第二个 section (#feature-tabs-section) 的样式 ---------- */
#feature-tabs-section {
    position: relative;
    background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%);
}

/* Tab 导航容器 */
#feature-tabs-section .feature-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 0 32px 0;
}

/* Tab 按钮样式 */
#feature-tabs-section .feature-tab-btn {
    padding: 12px 32px;
    border: 1px solid #E5E6EB;
    border-radius: 32px;
    background-color: #fff;
    color: #4E5969;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "OPPOSans-R", sans-serif;
    white-space: nowrap;
}

#feature-tabs-section .feature-tab-btn:hover {
    border-color: #0067FC;
    color: #0067FC;
    background-color: #F5F8FF;
}

#feature-tabs-section .feature-tab-btn.active {
    border-color: #0067FC;
    background: linear-gradient(135deg, #0067FC, #03B8FF);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 103, 252, 0.35);
}

/* Tab 面板容器 */
#feature-tabs-section .feature-tab-panel {
    display: none;
}

#feature-tabs-section .feature-tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Tab 内容布局 */
#feature-tabs-section .feature-tab-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

@media (min-width: 1024px) {
    #feature-tabs-section .feature-tab-content {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* 图片列 */
#feature-tabs-section .feature-image-col {
    position: relative;
}

#feature-tabs-section .feature-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

#feature-tabs-section .feature-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文字列 */
#feature-tabs-section .feature-text-col {
    display: flex;
    flex-direction: column;
}

/* 面板标题 */
#feature-tabs-section .feature-panel-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #1A1A2E;
    margin: 0;
}

/* 介绍文字 */
#feature-tabs-section .feature-intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4A4A68;
    margin: 12px 0px 24px 0px;
}

/* 功能列表 */
#feature-tabs-section .feature-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 单个功能项 */
#feature-tabs-section .feature-list-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* 图标容器 */
#feature-tabs-section .feature-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #EFF6FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

#feature-tabs-section .feature-item-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* 功能文字 */
#feature-tabs-section .feature-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 功能小标题 */
#feature-tabs-section .feature-item-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #1A1A2E;
}

/* 功能描述文字 */
#feature-tabs-section .feature-item-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #4A4A68;
}

/* 响应式：order 控制 */
@media (min-width: 1024px) {
    #feature-tabs-section .order-1 {
        order: 1;
    }

    #feature-tabs-section .order-2 {
        order: 2;
    }
}

/* 响应式：移动端 */
@media (max-width: 1023px) {
    #feature-tabs-section .feature-tab-content {
        padding: 32px 24px;
        gap: 32px;
    }

    #feature-tabs-section .feature-panel-title {
        font-size: 24px;
    }

    #feature-tabs-section .feature-tab-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    #feature-tabs-section .feature-image-col,
    #feature-tabs-section .feature-text-col {
        order: initial !important;
    }
}

/* ---------- 第三个 section (#workflow) 五步完成智能排版,上手零门槛 ---------- */
/* 完全复用触摸屏报工的业务闭环流程样式 */

/* w1200 容器样式 - 确保居中 */
.w1200 {
  margin-left: auto;
  margin-right: auto;
}

#workflow .max-w-content {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

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

/* Tailwind mx-auto 类 - 实现居中 */
.cmpbg-section .mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* 流程步骤圆圈 */
.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;
}

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

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

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

/* 动画定义 */
@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%;
  }
}

/* 响应式适配 */
@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;
  }
}

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