/* 仅保留纯CSS补充样式，不包含任何Tailwind指令 */

/* 响应式调整补充 */
@media (max-width: 768px) {
  .product-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .scroll-left-btn, .scroll-right-btn {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

/* 动画补充 */
.faq-question i {
  transition: transform 0.3s ease;
}
.faq-question.active i {
  transform: rotate(45deg);
  color: var(--tw-color-primary);
}

/* 产品卡片悬停效果增强 */
.group .bg-light {
  transition: all 0.3s ease;
}
.group:hover .bg-light {
  transform: translateY(-5px);
}

/* 表单焦点样式补充 */
input:focus, textarea:focus {
  box-shadow: 0 0 0 2px rgba(93, 63, 211, 0.5);
}

/* 按钮过渡效果优化 */
button, a {
  transition: all 0.2s ease-in-out;
}

/* 防止图片拉伸 */
img {
  object-fit: cover;
}

/* 移动端菜单样式优化 */
#mobile-menu {
  z-index: 60;
}

/* 产品组标题间距调整 */
.products-section h3 {
  margin-bottom: 1.5rem;
}

/* 回到顶部按钮动画 */
#back-to-top {
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
#back-to-top:hover {
  transform: scale(1.1);
}

/* 新增：产品图片悬停图标样式 */
.enlarge-img-btn, .product-link-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.enlarge-img-btn:hover, .product-link-btn:hover {
  transform: scale(1.1);
  background-color: #fff !important;
  color: #5D3FD3 !important;
}

/* 新增：图片放大模态框样式 */
.img-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
}
.img-modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
.modal-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
}
.modal-title {
  color: #fff;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.2rem;
}
.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.close-modal:hover {
  color: #F8C8DC;
  transform: rotate(90deg);
}

/* 响应式模态框调整 */
@media (max-width: 640px) {
  .modal-content {
    max-width: 95%;
  }
  .modal-title {
    font-size: 1rem;
  }
  .close-modal {
    top: -30px;
    font-size: 1.5rem;
  }
}