/* 产品卡片样式 - 左图右文版 */

/* 链接卡片布局优化 */
.site-main .site-list {
  display: grid !important; /* 强制使用网格布局 */
  grid-template-columns: repeat(4, 1fr) !important; /* 默认一排四个卡片 */
  gap: 20px; /* 卡片之间的间距 */
  margin: 0 auto 30px auto;
  max-width: 1360px;
  padding: 0 15px;
  box-sizing: border-box;
  width: auto !important; /* 覆盖可能的冲突样式 */
  float: none !important; /* 覆盖可能的冲突样式 */
}

/* 产品卡片样式 */
.product-card.list {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100% !important; /* 覆盖可能的冲突样式 */
  float: none !important; /* 覆盖可能的冲突样式 */
  margin: 0 !important; /* 覆盖可能的冲突样式 */
}

.product-card.list:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(74, 137, 220, 0.3);
}

.product-card.list a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  text-decoration: none;
  color: inherit;
  width: 100% !important; /* 覆盖可能的冲突样式 */
}

/* 卡片内容区域 - 左图右文布局 */
.card-content {
  display: flex;
  padding: 15px;
  flex-grow: 1;
}

/* 图标容器样式 - 左侧 */
.card-icon-wrapper {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 12px;
  margin-right: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.card-icon-wrapper img,
.card-icon-wrapper svg {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* 文字内容区域 - 右侧 */
.card-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

/* 卡片名称样式 */
.card-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 功能亮点区域 */
.card-features-area {
  width: 100%;
}

.features-content-text {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 图片容器样式 - 大图展示 */
.card-image-container {
  width: 100%;
  height: 140px;
  background-color: #f8f8f8;
  overflow: hidden;
  margin-top: auto;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card.list:hover .card-image-container img {
  transform: scale(1.05);
}

/* 响应式优化 */
@media only screen and (min-width: 1601px) {
  .site-main .site-list {
    grid-template-columns: repeat(5, 1fr) !important; /* 超大屏幕5列 */
  }
}

@media only screen and (max-width: 1600px) {
  .site-main .site-list {
    grid-template-columns: repeat(4, 1fr) !important; /* 大屏幕4列 */
  }
}

@media only screen and (max-width: 1200px) {
  .site-main .site-list {
    grid-template-columns: repeat(3, 1fr) !important; /* 中等屏幕3列 */
    gap: 18px;
  }
  
  .card-content {
    padding: 12px;
  }
}

@media only screen and (max-width: 992px) {
  .site-main .site-list {
    grid-template-columns: repeat(2, 1fr) !important; /* 平板设备2列 */
    gap: 15px;
  }
  
  .card-icon-wrapper {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }
  
  .card-icon-wrapper img,
  .card-icon-wrapper svg {
    width: 30px;
    height: 30px;
  }
  
  .card-name {
    font-size: 15px;
    margin-bottom: 6px;
  }
  
  .card-image-container {
    height: 120px;
  }
}

@media only screen and (max-width: 576px) {
  .site-main .site-list {
    grid-template-columns: repeat(1, 1fr) !important; /* 手机设备1列 */
    max-width: 450px;
    margin: 0 auto 25px;
    padding: 0 10px;
    gap: 12px;
  }
  
  .card-content {
    padding: 10px;
  }
  
  .card-icon-wrapper {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    margin-right: 10px;
  }
  
  .card-icon-wrapper img,
  .card-icon-wrapper svg {
    width: 24px;
    height: 24px;
  }
  
  .card-name {
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .features-content-text {
    font-size: 12px;
    -webkit-line-clamp: 1; /* 手机端只显示一行描述 */
  }
  
  .card-image-container {
    height: 110px;
  }
}

/* 暗色模式优化 */
@media (prefers-color-scheme: dark) {
  .product-card.list {
    /* background-color: #1e1e1e; */
    border-color: #333;
  }
  
  .card-name {
    color: #e0e0e0;
  }
  
  .features-content-text {
    color: #aaa;
  }
  
  .card-icon-wrapper {
    background-color: #2a2a2a;
  }
  
  .card-image-container {
    background-color: #2a2a2a;
  }
} 