/* 全局样式 */
:root {
  --primary-color: #062c69;
  --secondary-color: #1a237e;
  --accent-color: #0d47a1;
  --text-color: #333;
  --light-bg: #f5f6fa;
  --gradient-start: #062c69;
  --gradient-end: #0d47a1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* 导航栏样式 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(6, 44, 105, 0.1);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--secondary-color);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 英雄区域样式 */
.hero {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 9rem 5% 3rem;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.slogan {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.2s;
}

.description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 30px;
  transition: transform 0.3s;
  animation: fadeInUp 1s ease 0.6s;
}

.cta-button:hover {
  transform: translateY(-5px);
  background: var(--primary-color);
  color: white;
}

/* 关于我们部分 */
.about {
  padding: 5rem 5%;
  background: var(--light-bg);
}

.about h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* 业务领域部分 */
.services {
  padding: 5rem 5%;
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(6, 44, 105, 0.1);
  transition: transform 0.3s;
  border: 1px solid rgba(6, 44, 105, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(6, 44, 105, 0.2);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 联系我们部分 */
.contact {
  padding: 5rem 5%;
  background: var(--light-bg);
}

.contact h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary-color);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  text-align: center;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 页脚样式 */
footer {
  background: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 2rem;
  border-top: 3px solid var(--primary-color);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .logo img {
    height: 48px;
  }

  .nav-links {
      display: none;
  }

  .mobile-menu {
      display: block;
  }

  .hero-content h2 {
      font-size: 2rem;
  }

  .slogan {
      font-size: 1.5rem;
  }

  .services-grid {
      grid-template-columns: 1fr;
  }
}

/* 科技感元素 */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(6, 44, 105, 0.1));
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.service-card:hover::before {
  transform: translateX(0);
}