/* assets/css/style.css */

/* ===== 基础重置 ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* ===== 导航栏 ===== */
.nav-link {
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover,
.nav-link.active {
  color: #2563eb;
}

/* ===== 轮播 ===== */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide {
  min-width: 100%;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}
.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
}
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}
.carousel-dot.active {
  background: #ffffff;
}

/* ===== 产品卡片 ===== */
.product-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* ===== 解决方案卡片 ===== */
.solution-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  z-index: 50;
  border: none;
}
.back-to-top.visible {
  opacity: 1;
}
.back-to-top:hover {
  background: #1e40af;
}

/* ===== 汉堡菜单 ===== */
.mobile-menu {
  display: none;
}
.mobile-nav {
  display: none;
}
@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .mobile-nav.open {
    max-height: 400px;
  }
}

/* ===== 动画 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 公司简介 ===== */
.about-section {
  position: relative;
  width: 100%;
  height: 609px;
  overflow: hidden;
}
.about-bg-animate {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.about-bg-animate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateX(-100%);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-bg-animate.slide-in img {
  transform: translateX(0);
}
.about-bg-animate.slide-in img {
  animation: bgZoom 20s ease-in-out infinite alternate;
  animation-delay: 1.2s;
}
@keyframes bgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}
.about-content-wrap {
  position: relative;
  width: 50%;
  height: 100%;
  margin-left: 50%;
  background: #fff;
  z-index: 2;
}
.about-content {
  max-width: 700px;
  padding: 48px 0 48px 60px;
}
.about-title {
  display: flex;
  align-items: baseline;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid #2563eb;
}
.about-text {
  margin-bottom: 28px;
}
.about-text p {
  line-height: 28px;
  text-indent: 2em;
  padding-bottom: 16px;
  font-size: 14px;
  color: #666;
}
@media (max-width: 768px) {
  .about-section {
    height: auto;
    padding: 0;
  }
  .about-bg-animate {
    position: relative;
    width: 100%;
    height: 220px;
  }
  .about-content-wrap {
    width: 100%;
    margin-left: 0;
    background: #fff;
  }
  .about-content {
    width: 100%;
    max-width: none;
    padding: 24px 16px;
  }
}
