:root {
    --primary-color: #165DFF;
    --secondary-color: #36BFFA;
    --dark-color: #1D2939;
    --light-color: #F9FAFB;
    --gray-color: #667085;
    --border-color: #E5E7EB;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: #F5F7FA;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}





/* 导航栏样式 */
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px; /* 图片与文字间距，如需保留文字 */
  text-decoration: none;
}

.logo-image {
  height: 40px; /* 根据需要调整高度 */
  width: auto; /* 保持宽高比 */
  object-fit: contain; /* 确保图片完整显示 */
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: #666;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0a66c2;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0a66c2;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
}

/* 移动端菜单样式 */
.mobile-menu {
  position: fixed;
  top: 80px; /* 与导航栏高度一致 */
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 10px 10px rgba(0,0,0,0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 99;
}

.mobile-menu.active {
  max-height: 400px; /* 足够容纳所有菜单项 */
}

.mobile-links {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 15px;
}

.mobile-links a {
  padding: 10px 15px;
  font-weight: 500;
  color: #666;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.mobile-links a:hover,
.mobile-links a.active {
  color: #0a66c2;
  background-color: #f0f7ff;
}

/* 在768px以下显示移动端菜单 */
@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
}




/* 产品核心区域样式 */

.product-core {
    padding: 60px 0;
    margin-top: 80px; 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .product-core {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }
}

/* 图片轮播容器 */
.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center; /* 垂直居中图片 */
    justify-content: center; /* 水平居中图片 */
}

@media (max-width: 768px) {
    .slider-container {
        height: 500px;
    }
}

.image-slider {
    display: flex;
    height: 100%;
    transition: var(--transition);
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为contain保持完整显示，避免裁剪 */
    flex-shrink: 0;
    max-height: 100%;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--primary-color);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.indicator-container {
    display: flex;
    justify-content: center;
    padding: 15px;
    gap: 8px;
    background: white;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* 产品信息卡片 */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.info-card h2 {
    color: var(--dark-color);
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.info-card p {
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 技术参数样式 */
.specifications {
    margin-bottom: 30px;
}

.specifications h3, .features h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.specifications h3::before, .features h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    margin-right: 10px;
    border-radius: 2px;
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .spec-list {
        grid-template-columns: 1fr;
    }
}

.spec-item {
    display: flex;
    padding: 10px 15px;
    background: var(--light-color);
    border-radius: 8px;
}

.spec-label {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 100px;
}

.spec-value {
    color: var(--gray-color);
    margin-left: 15px; /* 增加左侧间距，可根据需要调整数值 */
}




/* 产品区域 */
.product-details {
    padding: 40px 0 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.detail-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.detail-card p {
    color: var(--gray-color);
    line-height: 1.8;
}




/* 页脚样式 */
footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 60px 0 30px;
  margin-top: 80px;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

/* 公司信息部分 */
.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo-icon {
  font-size: 28px;
  margin-right: 12px;
  color: #4cc9f0;
}

.footer-logo span {
  font-size: 22px;
  font-weight: 700;
}

.footer-desc {
  color: #b0b0c3;
  max-width: 350px;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* 微信二维码样式 */
.footer-social {
  position: relative;
  display: inline-block; /* 确保容器能正确包裹内容 */
}

.wechat-container {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

/* 微信图标样式 */
.wechat-container img {
  width: 110px;  /* 从40px增大到50px */
  height: 110px; /* 从40px增大到50px */
  border-radius: 10%;
  object-fit: contain; /* 确保图片完整显示 */
}

/* 鼠标悬停显示二维码 */
.wechat-container:hover .wechat-qrcode {
  opacity: 1;
  visibility: visible;
}

.wechat-qrcode {
  position: absolute;
  top: 0; /* 与微信图标顶端对齐 */
  left: calc(100% + 10px); /* 微信图标右侧，距离10px */
  width: 120px;
  height: 120px;
  padding: 5px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

/* 调整三角指示位置，使其指向微信图标 */
.wechat-container {
  position: relative;
  display: inline-block;
  vertical-align: top; /* 确保图标垂直对齐 */
}

/* 三角指示位置调整到二维码左上角，指向微信图标 */
.wechat-qrcode::after {
  content: '';
  position: absolute;
  right: 100%; /* 二维码左侧 */
  top: 10px; /* 距离顶部10px */
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

/* 在现有样式基础上添加以下代码 */
@media (max-width: 768px) {
  .footer-social {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .wechat-container {
    /* 确保微信图标在移动设备上居中显示 */
    margin: 0 auto;
  }
}


.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: #4cc9f0;
  transform: translateY(-3px);
}

/* 快速链接部分 */
.footer-links {
  min-width: 200px;
}

.footer-links h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #4cc9f0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b0b0c3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a.active {
  color: #4cc9f0;
  padding-left: 5px;
}

.footer-links li i {
  margin-right: 8px;
  color: #4cc9f0;
  width: 16px;
  text-align: center;
}

/* 版权信息 */
.copyright {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #8a8a9c;
  font-size: 14px;
}



/* 响应式调整 */
@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-links h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .map-container {
    height: 350px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .map-container {
    height: 300px;
  }
}