/**
 * 解决方案卡片组件样式
 * 采用BEM命名规范，实现模块化和可复用的设计
 * 支持响应式布局和交互效果
 */

/* ==========================================================================
   设计令牌 (Design Tokens)
   ========================================================================== */
:root {
  /* 颜色系统 */
  --solutions-primary-color: #0056b9;
  --solutions-primary-alpha: rgba(0, 86, 185, 0.8);
  --solutions-text-primary: #ffffff;
  --solutions-text-secondary: rgba(255, 255, 255, 0.5);
  --solutions-bg-overlay: rgba(0, 86, 185, 0.8);
  --solutions-bg-hover: rgba(0, 86, 185, 0.9);
  --solutions-border-color: #ffffff;
  --solutions-btn-bg: rgba(255, 255, 255, 0.1);
  
  /* 间距系统 */
  --solutions-spacing-xs: 8px;
  --solutions-spacing-sm: 12px;
  --solutions-spacing-md: 16px;
  --solutions-spacing-lg: 20px;
  --solutions-spacing-xl: 32px;
  --solutions-spacing-xxl: 60px;
  
  /* 字体系统 */
  --solutions-font-family: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
  --solutions-font-size-sm: 14px;
  --solutions-font-size-md: 20px;
  --solutions-font-size-lg: 32px;
  --solutions-line-height-sm: 18px;
  --solutions-line-height-md: 40px;
  --solutions-line-height-lg: 41px;
  
  /* 布局系统 */
  --solutions-container-padding: 360px;
  --solutions-card-height: 360px;
  --solutions-card-gap: 32px;
  --solutions-border-radius: 42px;
  
  /* 过渡效果 */
  --solutions-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   解决方案容器
   ========================================================================== */

/**
 * 解决方案主容器
 * 提供整体布局和间距控制
 */
.solutions {
  width: 100%;
  padding: var(--solutions-spacing-xxl) 0;
  background: #ffffff;
}

/**
 * 解决方案内容容器
 * 控制最大宽度和水平居中
 * 支持响应式自适应布局
 */
.solutions__container {
  width: 62.5%;
  margin: 0 auto;
  box-sizing: border-box;
  min-width: 320px;
  max-width: 1920px;
  display: flex;
}
.solutions__containerPhone {
  display: none;
}

/* ==========================================================================
   解决方案行布局
   ========================================================================== */

/**
 * 解决方案行容器
 * 使用flexbox实现水平布局
 */
.solutions__row {
  display: flex;
  gap: var(--solutions-card-gap);
  margin-bottom: var(--solutions-card-gap);
}

/**
 * 单卡片行布局
 * 用于智慧文旅等单独显示的卡片
 */
.solutions__row--single {
  justify-content: flex-start;
}

.solutions__row:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   解决方案卡片
   ========================================================================== */

/**
 * 解决方案卡片基础样式
 * 定义卡片的基本布局和外观
 */
.solutions__maxcard {
  width: 24.15%;
  display: inline-block;
}
.solutions__ricard {
  width: 24.15%;
  margin-left: 1.13%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.solutions__card {
  position: relative;
  width: 100%;
  cursor: pointer;
  display: inline-block;
}

.solutions-bgImg {
  width:100%;
  height: auto;
}



/* ==========================================================================
   卡片背景图片
   ========================================================================== */

/**
 * 卡片背景容器
 * 用于设置不同解决方案的背景图片
 * 支持响应式自适应缩放
 */



/* ==========================================================================
   卡片内容
   ========================================================================== */

/**
 * 卡片内容容器
 * 定义内容的布局和定位
 * 确保所有卡片都有统一的蓝色半透明背景
 */
.solutions__card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 24px;
  background: rgba(0, 86, 185, 0.8); /* Rectangle 30样式：#0056b9cc */
  color: white;
  transition: all 0.4s ease;
  z-index: 2;
  height: 100%;
  flex-direction: column;
  display: none;
}
/* 所有卡片的基础标题样式 - 确保视觉一致性 */
.solutions__card-title {
  width: 100%;
  height: 41px;
  font-size: 32px; /* 标题字体大小32px */
  font-weight: 700;
  color: #ffffff; /* 白色文字 */
  font-family: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
  line-height: 41px;
  margin: 0 0 12px 0;
  transition: all 0.3s ease;
}

/* 卡片副标题样式 */
.solutions__card-subtitle {
  width: 100%;
  height: auto;
  font-size: 14px; /* 副标题字体大小14px */
  color: rgba(255, 255, 255, 0.5); /* 半透明白色文字 */
  font-family: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
  line-height: 18px;
  margin: 0;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.solutions__card:not(.solutions__card--featured):hover .solutions__card-title {
  transform: translateY(-5px);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}





/**
 * 卡片描述文字
 * 仅在悬浮状态下显示
 */
.solutions__card-description {
  width: 100%;
  height: 76px;
  /* margin: var(--solutions-spacing-lg) 0 0; */
  font-family: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
  font-size: 20px;
    margin: 20px 0 30px 0;
    line-height: 38px; /* 根据设计图调整行高 */
  color: #ffffff;
  letter-spacing: 0;
  opacity: 0;    align-items: center;
      display: flex;
  /* visibility: hidden; */
  transform: translateY(20px);
  transition: var(--solutions-transition);
}

/* 卡片分割线 - Rectangle 23样式 */
.solutions__card-divider {
    width: 128px;
    height: 2px;
    background: #ffffff; /* Rectangle 23样式：白色背景 */
    opacity: 0;
    margin: 12px 0 0 0;
    visibility: hidden;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.3s ease 0.1s;
}

/* 卡片按钮 - Rectangle 24样式 */
.solutions__card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1); /* Rectangle 24样式：半透明白色背景 */
    border: 1px solid #ffffff;
    border-radius: 20px;
    padding: 10px 31px;
    text-decoration: none;
    font-family: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
    line-height: 18px;
    transition: all 0.3s ease 0.2s;
}

.solutions__card-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(4px);
  color: #ffffff;
  text-decoration: none;
}



/* ==========================================================================
   交互效果
   ========================================================================== */



/**
 * 所有卡片统一悬浮效果
 * 显示详细内容和交互元素
 */
.solutions__card:hover .solutions__card-content {
  display: flex;
  justify-content: center;
}

.solutions__card:hover {
  box-shadow: 0 8px 32px rgba(0, 86, 185, 0.2);
}


.solutions__card:hover .solutions__card-title {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/**
 * 隐藏元素工具类
 */
.solutions__hidden {
  display: none !important;
}

/**
 * 可见元素工具类
 */
.solutions__visible {
  display: block !important;
}

/**
 * 禁用交互工具类
 */
.solutions__disabled {
  pointer-events: none;
  opacity: 0.6;
}

/**
 * 加载状态工具类
 */
.solutions__loading {
  position: relative;
  overflow: hidden;
}

.solutions__loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: solutions-loading 1.5s infinite;
}

@keyframes solutions-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
/**
 * 中等大屏幕适配 (1200px - 1440px)
 */
@media (max-width: 1440px) and (min-width: 1200px) {
  .solutions__container {
    width: 65%;
  }
}
/**
 * 标准桌面适配 (1024px - 1200px)
 */
@media (max-width: 1199px) and (min-width: 1025px) {
  .solutions__container {
    width: 70%;
  }
}
/**
 * 平板设备适配 (768px - 1024px)
 */
@media (max-width: 1024px) {
  :root {
    --solutions-container-padding: 60px;
    --solutions-card-gap: 24px;
    --solutions-font-size-lg: 28px;
    --solutions-font-size-md: 18px;
  }

  .solutions {
    padding: var(--solutions-spacing-xl) 0;
  }

  .solutions__container {
    width: 85%; /* 平板设备下增加宽度利用率 */
    /* padding: 0 var(--solutions-spacing-lg); */
  }



}
/* ==========================================================================
   大屏幕设备适配 (> 1440px)
   ========================================================================== */
@media (min-width: 1441px) {
  .solutions__container {
    width: 62.5%; /* 大屏幕下稍微收窄 */
  }

}

@media (max-width: 768px) {
  .solutions {
    background: #fafafa;
    padding: 0;
  }
  .solutions__container{
    display: none;
  }
  .solutions__containerPhone {
    width: 100%;
    padding: 0.747rem  /* 56/75 */ 0.373rem  /* 28/75 */;
    box-sizing: border-box;
    display: block;
  }
  .solutions__card {
    width: 48.12%;
    margin-bottom: 0.427rem  /* 32/75 */;
    border-radius: 0.32rem  /* 24/75 */;
    box-shadow: 0 0.027rem  0.053rem rgba(0,0,0,0.05);
    padding: 0.32rem  /* 24/75 */;
    background-color: #ffffff;
  }
.solutions__card:nth-of-type(odd){
  margin-right: 1.8%;
}
  .solutions__card-title {
    margin: 0.293rem  /* 22/75 */ 0 0 0;
    height: 0.533rem  /* 40/75 */;
    line-height: 0.533rem  /* 40/75 */;
    font-size: 0.373rem  /* 28/75 */;
    color: #000000;
    text-align: center;
    font-weight: 500;
  }

}