/* CSS样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* 响应式导航栏 */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

/* 在大屏幕上限制最大宽度但保持左右间距 */
@media (min-width: 1200px) {
  .navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
  }
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #526CAC;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #526CAC;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0 15px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 20px 0;
  }
  
  .nav-link {
    font-size: 18px;
    padding: 15px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    height: 60px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .logo img {
    height: 35px;
  }
  
  .nav-menu {
    top: 60px;
    height: calc(100vh - 60px);
  }
}

/* Banner区域样式 */
.banner {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-content {
  width: 100%;
  aspect-ratio: 192/107;
  background-image: url('../assets/banner_h.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Banner响应式设计 */
@media (max-width: 768px) {
  .banner-content {
    aspect-ratio: 12/15; /* 移动端使用垂直比例 */
    background-image: url('../assets/banner_v.jpg');
    background-size: cover;
    background-position: center;
  }
}

@media (max-width: 480px) {
  .banner-content {
    aspect-ratio: 12/15; /* 小屏幕保持垂直比例 */
    min-height: 300px; /* 确保最小高度 */
  }
}

/* Footer区域样式 */
.footer {
  background: rgb(40, 40, 40);
  color: #ecf0f1;
  padding: 40px 0 20px;
  text-align: center;
}

.footer .icons {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 30px 0;
  padding: 0;
  gap: 20px;
}

.footer .icons li {
  margin: 0;
}

.footer .icons a {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: #34495e;
  color: #ecf0f1;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
  background-size: 24px 24px;
  background-position: center;
  background-repeat: no-repeat;
}

/* 社交媒体图标背景图 */
.footer .icons a.fa-twitter {
  background-image: url('../assets/foot_tw.svg');
}

.footer .icons a.fa-facebook {
  background-image: url('../assets/foot_face.svg');
}

.footer .icons a.fa-instagram {
  background-image: url('../assets/foot_ins.svg');
}

.footer .icons a .label {
  display: none;
}

.footer .copyright {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #bdc3c7;
  font-size: 14px;
}

.footer .copyright li {
  margin: 0;
}

/* Footer响应式设计 */
@media (max-width: 768px) {
  .footer {
    padding: 30px 0 15px;
  }
  
  .footer .icons {
    gap: 15px;
    margin-bottom: 25px;
  }
  
  .footer .icons a {
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 25px 0 15px;
  }
  
  .footer .icons {
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .footer .icons a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
  }
  
  .footer .copyright {
    font-size: 12px;
  }
}

/* 服务特色区域样式 */
.features {
  background: #f8f9fa;
  padding: 80px 0;
}

.features .container {
  margin: 0 auto;
  padding: 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #526CAC, #3f5889);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.feature-description {
  color: #7f8c8d;
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
  flex: 1;
}

/* 服务特色区域响应式设计 */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .features {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .features {
    padding: 50px 0;
  }
  
  .feature-item {
    padding: 25px 15px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }
  
  .feature-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .feature-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .feature-description {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .features .container {
    padding: 0 15px;
  }
  
  .features {
    padding: 40px 0;
  }
  
  .feature-item {
    padding: 20px 15px;
  }
  
  .feature-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
  }
  
  .feature-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .feature-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .feature-description {
    font-size: 12px;
  }
}

/* Featured Products区域样式 */
.featured-products {
  padding: 80px 2em;
  background: #fff;
}

.featured-products .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.6;
}


.swiper {
  width: 100%;
  padding: 20px 0;
}

.swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  transform: scale(0.9);
  opacity: 0.7;
}

/* 居中放大的slide样式 */
.swiper-slide-active {
  transform: scale(1.15);
  opacity: 1;
  z-index: 2;
}

/* 相邻slide的样式 */
.swiper-slide-next,
.swiper-slide-prev {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Swiper 导航按钮样式 */
.swiper-button-next,
.swiper-button-prev {
  color: #2c3e50;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #2c3e50;
  color: white;
  transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

/* Swiper 分页器样式 */
.swiper-pagination {
  position: relative;
  margin-top: 30px;
}

.swiper-pagination-bullet {
  background: #bdc3c7;
  opacity: 0.5;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #2c3e50;
  opacity: 1;
  transform: scale(1.2);
}

/* 响应式导航按钮 */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }
  
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 14px;
  }
}


.product-item {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.product-desc {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .featured-products {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .product-name {
    font-size: 15px;
    font-weight: 600;
  }
  
  .product-desc {
    font-size: 13px;
  }
  
  .product-info {
    padding: 18px;
  }
}

@media (max-width: 768px) {
  .featured-products {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .product-name {
    font-size: 14px;
    font-weight: 600;
  }
  
  .product-desc {
    font-size: 12px;
  }
  
  .product-info {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .featured-products {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 14px;
  }
  
  .product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
  }
  
  .product-desc {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .product-info {
    padding: 12px;
  }
}