/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全局样式 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f9fafb;
  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;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0a66c2;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #004182;
  transform: translateY(-2px);
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title span {
  display: inline-block;
  color: #0a66c2;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.section-title p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}



/* 导航栏样式 */
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;
  }
}



/* 页面标题区域 */
.hero {
  margin-top: 80px;
  padding: 100px 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #333;
}

.hero h1 span {
  color: #0a66c2;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* 公司简介 */
.about {
  background-color: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text span {
  color: #0a66c2;
  font-weight: 600;
}

.about-text h2 {
  font-size: 2rem;
  margin: 10px 0 20px;
}

.about-text h2 span {
  color: #0a66c2;
}

.about-text p {
  color: #666;
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a66c2;
  margin-bottom: 5px;
}

.stat-item .label {
  color: #666;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image::before,
.about-image::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background-color: rgba(10, 102, 194, 0.1);
  z-index: -1;
}

.about-image::before {
  width: 150px;
  height: 150px;
  top: -30px;
  right: -30px;
}

.about-image::after {
  width: 120px;
  height: 120px;
  bottom: -20px;
  left: -20px;
}

/* 发展历程 */
.history {
  background-color: #f9fafb;
}

.timeline {
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #0a66c2;
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 60px;
  position: relative;
}

.timeline-content {
  width: 45%;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 4.5%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50.5%;
}

.timeline-date {
  position: absolute;
  left: 50%;
  width: 50px;
  height: 50px;
  background-color: #0a66c2;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-date {
  background-color: #34a853;
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: #333;
}

.timeline-content p {
  color: #666;
}

/* 企业文化 */
.culture {
  background-color: white;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-item {
  background-color: #f9fafb;
  padding: 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.value-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(10, 102, 194, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #0a66c2;
  font-size: 1.5rem;
}

.value-item h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.value-item p {
  color: #666;
}



/* 联系我们 */
.contact {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: #666;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(10, 102, 194, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a66c2;
  flex-shrink: 0;
}

.contact-text h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-text p {
  color: #666;
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(10, 102, 194, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a66c2;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #0a66c2;
  color: white;
}




/* 页脚样式 */
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;
  }
}

