
/* 页面整体样式定义 */
/* 设置盒模型为 border-box，方便布局控制 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 设置全局字体与背景渐变 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298); /* 主色：蓝紫渐变 */
  color: #ffffff;
  line-height: 1.6;
}

/* 固定顶部导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(30, 60, 114, 0.9); /* 辅色：深蓝半透明 */
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: 0;
}

.navbar li {
  position: relative;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  transition: background 0.3s ease;
  font-size: 16px;
}

.navbar a:hover {
  background: linear-gradient(45deg, #ff7e5f, #feb47b); /* 点缀色：橙红渐变 */
  border-radius: 5px;
}

.navbar li ul {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: #1e3c72;
  border-radius: 5px;
  overflow: hidden;
}

.navbar li:hover ul {
  display: block;
}

.navbar li ul li {
  width: 150px;
}

.navbar li ul li a {
  font-size: 16px;
}

.navbar li ul li a:hover {
  background: linear-gradient(45deg, #feb47b, #ff7e5f);
}

/* 主内容容器，使用grid布局 */
.container {
  display: grid;
  grid-template-areas:
    'header'
    'hero'
    'services'
    'cases'
    'testimonials'
    'contact';
  grid-gap: 20px;
  padding: 100px 20px 20px 20px; /* 顶部留出导航栏空间 */
  max-width: 1200px;
  margin: 0 auto;
}

/* 英雄区样式 */
.hero {
  grid-area: hero;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -50px;
  left: -50px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}

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

.hero-content h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2em;
}

/* 服务介绍卡片样式 */
.services {
  grid-area: services;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 每块最小500px */
  gap: 20px;
}

.service-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.service-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card img:hover {
  transform: scale(1.05);
}

.service-card h4 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.service-card p {
  color: #666666;
  font-size: 1em;
}

/* 案例展示模块 */
.cases {
  grid-area: cases;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.case-item {
  flex: 1 1 300px; /* 每块最小500px */
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.case-item img {
  width: 100%;
  height: auto;
  display: block;
}

.case-item-content {
  padding: 15px;
}

.case-item-content h5 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  color: #333333;
}

.case-item-content p {
  font-size: 0.95em;
  color: #666666;
}

/* 数据信息可视化模块 */
.chart-container {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  color: #333333;
}

.chart-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  text-align: center;
}

@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
  }

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

@media (min-width: 769px) {
  .services {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

