/* ============================================
   统一产品/方案详情页样式
   适用于所有 product-detail 和 solution-detail 页面
   ============================================ */

/* ===== 产品详情主布局 ===== */
.product-detail-section {
  padding: 60px 0;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ===== 产品图片区域 ===== */
.product-images {
  position: relative;
}

.product-main-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.product-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.product-thumbnail {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.product-thumbnail:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== 产品信息区域 ===== */
.product-info h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.product-info h1:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.product-description {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.product-features {
  margin-bottom: 30px;
}

.product-features h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

/* ===== 特性列表 ===== */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 16px;
  color: #555;
}

.feature-list li:before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary-color);
}

/* ===== 产品参数表 ===== */
.product-parameters {
  background-color: #f8f9fc;
  border-radius: 15px;
  padding: 30px;
  margin-top: 40px;
}

.product-parameters h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.product-parameters h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.parameter-list {
  list-style: none;
  padding: 0;
}

.parameter-list li {
  display: flex;
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
}

.parameter-list li .param-number {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 10px;
  min-width: 25px;
}

.parameter-list li .param-content {
  color: #555;
}

/* ===== 产品优势 (带图标圆形卡片) ===== */
.product-advantages {
  margin-top: 60px;
}

.product-advantages h2,
.product-advantages h3 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.product-advantages h2:after,
.product-advantages h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* ===== 优势网格（文字卡片，无图标） ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.advantage-item {
  background-color: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.advantage-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(30, 94, 255, 0.15);
}

.advantage-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(30, 94, 255, 0.2);
}

.advantage-icon i {
  font-size: 30px;
  color: #fff;
}

.advantage-item h3,
.advantage-item h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.advantage-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 方案特点网格（无图标，文字卡片） */
.advantages-grid .advantage-item {
  text-align: left;
}

/* ===== 产品示意图 ===== */
.product-diagram {
  margin-top: 60px;
  text-align: center;
}

.product-diagram h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
}

.product-diagram h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.diagram-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.diagram-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 性能特点网格 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  background-color: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(30, 94, 255, 0.15);
}

.feature-item h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  position: relative;
  padding-bottom: 12px;
}

.feature-item h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.feature-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ===== 方案概述 ===== */
.product-overview {
  padding: 40px 0;
}

.overview-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.overview-text {
  flex: 1;
}

.overview-text h2 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.overview-text h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.overview-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

/* ===== 方案架构图 ===== */
.solution-diagram {
  margin: 40px 0;
  padding: 40px;
  background-color: #f8f9fc;
  border-radius: 15px;
}

.solution-diagram h3 {
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 25px;
}

.diagram-container {
  text-align: center;
  margin-bottom: 20px;
}

.system-diagram {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.diagram-description {
  text-align: center;
  color: #666;
  font-size: 14px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== 技术特点展示 ===== */
.tech-features {
  margin: 40px 0;
}

.tech-features h3 {
  font-size: 28px;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.tech-features h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.tech-feature {
  background-color: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.tech-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(30, 94, 255, 0.12);
}

.tech-feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(30, 94, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: all 0.3s ease;
}

.tech-feature:hover .tech-feature-icon {
  background: rgba(30, 94, 255, 0.15);
  transform: scale(1.05);
}

.tech-feature-icon img {
  width: 35px;
  height: 35px;
}

.tech-feature h4 {
  font-size: 17px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.tech-feature p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ===== 功能模块网格 ===== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.module-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.module-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(30, 94, 255, 0.1);
}

.module-item h4 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(30, 94, 255, 0.1);
}

.module-item ul {
  list-style: none;
  padding: 0;
}

.module-item ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.module-item ul li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

/* ===== 系统组成列表 ===== */
.product-components {
  margin: 40px 0;
}

.product-components h3 {
  font-size: 28px;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.product-components h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.component-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.component-list li {
  background-color: #f8f9fc;
  border-radius: 12px;
  padding: 25px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.component-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.component-list li h4 {
  font-size: 17px;
  color: #333;
  margin-bottom: 10px;
}

.component-list li p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ===== 应用场景网格 ===== */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.scene-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.scene-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(30, 94, 255, 0.1);
}

.scene-item h4 {
  font-size: 17px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.scene-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ===== 产品咨询区域（统一使用 .contact-section，见上方通用CTA） ===== */

/* ===== 相关方案推荐 ===== */
.related-solutions {
  margin: 40px 0;
  padding: 40px;
  background-color: #f8f9fc;
  border-radius: 15px;
}

.related-solutions h3 {
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 25px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.solutions-grid .solution-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.solutions-grid .solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(30, 94, 255, 0.1);
}

.solutions-grid .solution-card a {
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.solutions-grid .solution-card a:hover {
  color: #0d49d6;
}

/* ===== 背景色工具类 ===== */
.bg-light {
  background-color: #f8f9fc;
  padding: 40px;
  border-radius: 15px;
  margin: 40px 0;
}

.bg-light h3 {
  font-size: 28px;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.bg-light h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* ===== 通用咨询CTA区域 ===== */
.contact-section {
  padding: 60px 0;
  text-align: center;
}

.contact-section.bg-light {
  background-color: #f8f9fc;
  border-radius: 0;
  margin: 0;
  padding: 60px 0;
}

.contact-content h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
}

.contact-content p {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 17px;
  border-radius: 30px;
}

/* ===== 相关产品推荐 ===== */
.related-products-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.related-product-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: visible;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.related-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-product-image {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.related-product-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.related-product-card:hover .related-product-image img {
  transform: scale(1.05);
}

.related-product-info {
  padding: 0 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-product-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.related-product-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
  flex: 1;
  min-height: 48px;
}

.related-product-info .btn-sm {
  margin-top: auto;
  align-self: flex-start;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
  .product-detail-container {
    grid-template-columns: 1fr;
  }

  .advantages-grid,
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .module-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .component-list {
    grid-template-columns: 1fr;
  }

  .scene-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .related-solutions {
    padding: 30px;
  }

  .bg-light {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .product-thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-info h1 {
    font-size: 28px;
  }

  .advantages-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .features-container {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .related-products-grid {
    grid-template-columns: 1fr;
  }

  .solution-diagram {
    padding: 25px;
  }
}
