/* 产品页面通用样式 */
:root {
  --primary: #5a67d8;
  --primary-dark: #4c51bf;
  --secondary: #48bb78;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --white: #ffffff;
}

/* Banner样式 */
.product-banner {
  height: 400px;
  margin-top: 68px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/pattern.svg") repeat;
  opacity: 0.1;
}

.product-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.product-banner-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-banner-subtitle {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 产品章节样式 */
.product-section {
  padding: 80px 0;
}

.product-section.bg-light {
  background-color: var(--bg-light);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 15px auto;
  border-radius: 2px;
}

/* 特性卡片样式 */
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 54px;
  width: 100px;
  height: 100px;
  margin-bottom: 25px;
  color: var(--primary);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.feature-icon::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(90, 103, 216, 0.1);
  border-radius: 50%;
  z-index: -1;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) translateY(-5px);
  color: var(--primary-dark);
}

.feature-card:hover .feature-icon::after {
  transform: scale(1.2);
  background: rgba(90, 103, 216, 0.15);
}

.feature-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.feature-description {
  height: 100px;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* 数据展示样式 */
.data-section {
  padding: 60px 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
}

.data-card {
  text-align: center;
  color: var(--white);
  padding: 30px;
}

.data-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-label {
  font-size: 18px;
  opacity: 0.9;
}

.data-card i {
  font-size: 42px;
  margin-bottom: 15px;
  opacity: 0.9;
  display: block;
  transition: all 0.3s ease;
}

.data-card:hover i {
  transform: scale(1.1);
}

/* 应用场景样式 */
.scenario-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.scenario-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.scenario-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.scenario-card:hover .scenario-image {
  transform: scale(1.05);
}

.scenario-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
}

.scenario-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.scenario-content i {
  font-size: 28px;
  margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-banner {
    height: 300px;
  }

  .product-banner-title {
    font-size: 32px;
  }

  .product-banner-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .feature-card {
    margin-bottom: 30px;
  }

  .data-card {
    margin-bottom: 30px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.data-card,
.scenario-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* 按钮样式 */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

.cta-button i {
  font-size: 20px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: var(--primary-dark);
  color: var(--white);
}

/* 联系我们样式 */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.contact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: var(--primary);
  color: var(--white);
}

.contact-item i {
  font-size: 24px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.contact-item:hover i {
  color: var(--white);
}

.contact-item span {
  font-size: 18px;
  font-weight: 500;
}

/* 弹出框样式 */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 90%;
  max-width: 500px;
}

.popup-content {
  text-align: center;
}

.popup h3 {
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .popup {
    width: 95%;
    padding: 20px;
  }

  .popup h3 {
    font-size: 20px;
  }

  .contact-item {
    padding: 12px;
  }

  .contact-item i {
    font-size: 20px;
  }

  .contact-item span {
    font-size: 16px;
  }
}

/* 产品介绍文本样式 */
.intro-text {
  padding: 0 30px 30px;
  margin-bottom: 20px;
}

.intro-text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 1000px;
  margin: 0 auto;
}

/* 行间距调整 */
.row.mt-4 {
  margin-top: 30px;
}

@media (max-width: 768px) {
  .intro-text {
    padding: 0 15px 20px;
  }

  .intro-text p {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* 二维码样式 */
.qrcode-container {
  margin: 20px auto;
  text-align: center;
}

.contact-qrcode {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  border: 2px solid var(--bg-light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-qrcode:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 产品展示样式 */
.product-showcase {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.product-showcase:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 25px;
  text-align: center;
  position: relative;
}

.product-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto;
  border-radius: 2px;
}

/* 产品Flex布局 */
.product-flex-container {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 30px;
}

.product-info {
  flex: 0 0 25%;
  min-width: 300px;
}

.product-image-side {
  flex: 0 0 75%;
  display: flex;
  justify-content: center;
}

.product-features {
  margin-bottom: 30px;
}

.product-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--text-dark);
}

.product-features i {
  color: var(--secondary);
  font-size: 20px;
}

.product-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.product-image {
  /* max-width: 100%; */
  height: auto;
  border-radius: 12px;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
}

.product-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .product-flex-container {
    flex-direction: column;
  }

  .product-info,
  .product-image-side {
    width: 100%;
  }

  .product-showcase {
    padding: 25px;
  }

  .product-title {
    font-size: 24px;
  }

  .product-features li {
    font-size: 16px;
  }
}

/* 焊接机器人轮播样式 */
.robot-slider-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.robot-slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.robot-slide {
  min-width: 100%;
  padding: 20px;
}

.robot-slide-inner {
  text-align: center;
}

.robot-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.robot-caption {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.robot-slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  border: none;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-slider-button.prev {
  left: 10px;
}

.robot-slider-button.next {
  right: 10px;
}

.robot-slider-button:hover {
  background: var(--primary);
  color: var(--white);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .robot-caption {
    font-size: 16px;
  }

  .robot-slider-button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
