/* products.css - 产品中心页面专属样式 */

/* 产品页面主容器 */
.products-detail {
  padding-top: 100px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  min-height: 100vh;
}

/* 页面标题区域 */
.products-detail .container > h1 {
  text-align: center;
  font-size: 2.8rem;
  color: #1a202c;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 20px;
}

.products-detail .container > h1:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #1890ff, #36cfc9);
  border-radius: 2px;
}

/* 产品详情卡片 - 核心样式 */
.product-detail-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 0;
  margin: 60px auto;
  max-width: 1200px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.product-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: #1890ff;
}

/* 产品图片区域 */
.product-image {
  flex: 1;
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: transparent; /* 新增：设置背景透明 */
}

.product-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 0; /* 修改：移除圆角 */
  box-shadow: none; /* 修改：移除阴影 */
  transition: transform 0.5s ease;
  background: transparent; /* 新增：确保图片背景透明 */
}

.product-detail-card:hover .product-image img {
  transform: scale(1.03);
}

/* 产品信息区域 */
.product-info {
  flex: 1.2;
  min-width: 320px;
  padding: 50px 40px;
}

.product-info h2 {
  font-size: 2.2rem;
  color: #1890ff;
  margin-bottom: 12px;
  font-weight: 700;
}

.product-subtitle {
  font-size: 1.1rem;
  color: #4a5568;
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* 产品特性列表 */
.product-features {
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.product-features li {
  padding: 14px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 1.05rem;
  color: #2d3748;
  display: flex;
  align-items: flex-start;
}

.product-features li:last-child {
  border-bottom: none;
}

.product-features li:before {
  content: "?";
  color: #1890ff;
  font-weight: bold;
  margin-right: 12px;
  font-size: 1.1rem;
  margin-top: 2px;
}

.product-features li strong {
  color: #1a202c;
  margin-right: 8px;
  min-width: 80px;
  display: inline-block;
}

/* 客户价值区域 */
.product-benefits {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f7ff 100%);
  border-left: 5px solid #1890ff;
  padding: 25px 30px;
  border-radius: 10px;
  margin: 35px 0;
}

.product-benefits h3 {
  color: #1a202c;
  margin-bottom: 18px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}

.product-benefits h3:before {
  content: "?";
  margin-right: 10px;
  font-size: 1.2rem;
}

.product-benefits p {
  color: #2d3748;
  margin: 10px 0;
  line-height: 1.7;
  padding-left: 5px;
}

/* 产品对比表格 */
.comparison-table {
  margin: 80px auto 50px;
  max-width: 1200px;
  overflow-x: auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.comparison-table h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1a202c;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.comparison-table h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #1890ff, transparent);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.comparison-table th {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  color: white;
  padding: 20px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
}

.comparison-table td {
  padding: 18px 15px;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
  transition: background 0.2s;
}

.comparison-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.comparison-table tr:hover {
  background-color: #edf7ff;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: #1890ff;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .product-detail-card {
    flex-direction: column;
    margin: 40px 20px;
    border-radius: 12px;
  }

  .product-image {
    padding: 30px;
    min-width: 100%;
  }

  .product-info {
    padding: 35px 30px;
    min-width: 100%;
  }

  .products-detail .container > h1 {
    font-size: 2.3rem;
    padding-top: 20px;
  }

  .product-info h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 576px) {
  .product-detail-card {
    margin: 30px 15px;
    border-radius: 10px;
  }

  .product-image,
  .product-info {
    padding: 25px 20px;
  }

  .products-detail .container > h1 {
    font-size: 1.9rem;
  }

  .product-info h2 {
    font-size: 1.6rem;
  }

  .comparison-table {
    margin: 50px 15px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px 12px;
    font-size: 0.9rem;
  }

  .product-features li {
    flex-direction: column;
  }

  .product-features li strong {
    min-width: 100%;
    margin-bottom: 5px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-detail-card {
  animation: fadeInUp 0.6s ease-out;
}

#door-sensor {
  animation-delay: 0.2s;
}

.comparison-table {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* 对比总结区域 - 增强样式 */
.comparison-summary {
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
  border: 1px solid #91d5ff;
  border-left: 4px solid #1890ff;
  border-radius: 10px;
  padding: 22px 30px;
  margin-top: 35px;
  position: relative;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.08);
  transition: all 0.3s ease;
}

.comparison-summary:hover {
  box-shadow: 0 6px 20px rgba(24, 144, 255, 0.12);
  transform: translateY(-2px);
}

/* 总结图标 */
.comparison-summary:before {
  content: "💡";
  position: absolute;
  top: -15px;
  left: 25px;
  background: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #1890ff;
}

/* 总结标题 */
.comparison-summary-title {
  color: #1890ff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.comparison-summary-title i {
  margin-right: 10px;
  font-size: 1.1rem;
}

/* 总结内容 */
.comparison-summary p {
  margin: 0;
  color: #1f2937;
  line-height: 1.7;
  font-size: 1rem;
}

.comparison-summary strong {
  color: #1890ff;
  font-weight: 600;
}

/* 关键数据突出显示 */
.key-data {
  display: inline-block;
  background: #1890ff;
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  margin: 0 5px;
  font-size: 0.95rem;
}

/* 额外提示信息 */
.summary-note {
  display: block;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #bae7ff;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

.summary-note i {
  color: #52c41a;
  margin-right: 6px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .comparison-summary {
    padding: 18px 20px;
    margin-top: 25px;
  }

  .comparison-summary:before {
    left: 20px;
    top: -12px;
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }

  .comparison-summary p {
    font-size: 0.95rem;
  }

  .key-data {
    padding: 2px 8px;
    font-size: 0.9rem;
  }
}
