:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --accent-color: #20c997;
  --dark-color: #212529;
  --light-color: #f8f9fa;
}

/* 基础样式 */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* 头部样式 */
header {
  background: var(--dark-color);
  color: white;
  padding: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  position: relative;
  z-index: 2;
}

/* 导航样式 */
nav {
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.nav-link {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* 通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: #333;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    padding: 1rem 0;
    position: relative;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .navbar .logo {
    margin-bottom: 1rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

.navbar .logo {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4CAF50;
}

/* 关于我们页面样式 */
.about-section {
    padding: 60px 0;
}

.about-content {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.about-image img {
    border-radius: 8px;
}

/* 联系方式样式 */
.contact-info {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.contact-info h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-item i {
    font-size: 24px;
    color: #4CAF50;
    margin-right: 15px;
}

.contact-item span {
    color: #666;
    font-size: 14px;
}

/* 服务页面样式 */
.services-section {
    padding: 60px 0;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 40px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.service-item h3 {
    margin: 15px 0;
    color: #333;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* 首页样式 */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease;
  padding: 0 1rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1.4s ease;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 1.5rem;
  }
  
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 4rem 0;
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

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

.cta-button:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(13,110,253,0.1) 10%, transparent 10.01%);
  background-size: 20px 20px;
  animation: moveParticles 10s linear infinite;
}

.glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(32,201,151,0.2) 0%, transparent 50%);
  animation: glowPulse 3s ease-in-out infinite;
}

/* 优势部分 */
.advantages-section {
  padding: 3rem 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.advantage-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.advantage-card .icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 技术专长部分 */
.tech-section {
  padding: 3rem 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.tech-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.tech-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 客户部分 */
.clients-section {
  padding: 3rem 0;
}

.client-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.client-logos img {
  max-width: 120px;
  height: auto;
  transition: transform 0.3s ease;
}

.client-logos img:hover {
  transform: scale(1.1);
}

/* 页脚样式 */
footer {
  background: var(--dark-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

footer p {
  margin: 0;
}

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

@keyframes moveParticles {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 100%;
  }
}

@keyframes glowPulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* AI服务页面样式 */
.ai-services-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
  font-size: 2.8rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  color: var(--accent-color);
  transform: scale(1.1);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--secondary-color);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 2rem;
}

.advantage-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.advantage-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.advantage-item:hover i {
  color: var(--accent-color);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
}
