
/* 全局样式设置，包括背景、字体和基本布局 */
/* 定义CSS变量，便于统一管理色彩 */
:root {
  --primary-color: #002B5B; /* 主色调，深蓝色象征信任与专业 */
  --secondary-color: #FFFFFF; /* 辅助色，白色增强简洁感 */
  --accent-color: #FFA500; /* 点缀色，亮橙色用于突出重点 */
  --neutral-color: #CCCCCC; /* 中性色，灰色用于背景与分隔 */
  --font-primary: 'Roboto', 'Open Sans', sans-serif; /* 主字体，现代无衬线 */
  --font-size-base: 16px; /* 基础字体大小 */
}

/* 设置全局字体和背景颜色 */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--secondary-color);
  background: linear-gradient(135deg, var(--primary-color) 70%, var(--neutral-color) 30%);
}

/* 固定导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 43, 91, 0.9); /* 半透明效果 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar a {
  color: var(--secondary-color);
  margin: 0 15px;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
  color: var(--accent-color);
  transform: scale(1.05);
}

/* 首页引导区样式 */
.hero-section {
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
}

.hero-section h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--secondary-color);
}

.hero-section .cta-button {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-section .cta-button:hover {
  background-color: #e69500;
  transform: scale(1.1);
}

/* 功能模块样式 */
.features-section {
  padding: 80px 40px;
  background-color: var(--neutral-color);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

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

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

.feature-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.feature-card img:hover {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.feature-card p {
  font-size: 16px;
  color: #333333;
}

/* 关于我们模块样式 */
.about-section {
  padding: 80px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--neutral-color) 40%);
}

.about-section img {
  width: 320px;
  height: 320px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.about-section .text-content {
  flex: 1;
  min-width: 300px;
  color: var(--secondary-color);
}

.about-section .text-content h2 {
  font-size:  thirty-two px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.about-section .text-content p {
  font-size: 16px;
  line-height: 1.8;
}

/* 数据可视化模块样式 */
.data-visualization-section {
  padding: 80px 40px;
  background-color: var(--primary-color);
  text-align: center;
}

.data-visualization-section h2 {
  font-size:  thirty-two px;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

.chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart {
  width: 100%;
  max-width: 800px;
  height: 400px;
  background-color: var(--neutral-color);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 客户评价模块样式 */
.testimonials-section {
  padding: 80px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  background: linear-gradient(135deg, var(--accent-color) 70%, var(--neutral-color) 30%);
}

.testimonial-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 20px solid var(--secondary-color);
}

.testimonial-card p {
  font-size: 16px;
  color: #333333;
  margin-bottom: 20px;
}

.testimonial-card h4 {
  font-size: 18px;
  color: var(--accent-color);
}

/* 回到顶部按钮样式 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 15px;
  border-radius: 50%;
  display: none;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* 代码片段样式 */
.code-block {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

.code-block pre {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: #333333;
}

/* 响应式设计：适应不同屏幕尺寸 */
@media (max-width: 1200px) {
  .navbar {
    padding: 15px 30px;
  }

  .hero-section h1 {
    font-size: 36px;
  }

  .hero-section p {
    font-size: 18px;
  }

  .features-section {
    padding: 60px 20px;
  }

  .about-section {
    flex-direction: column;
  }

  .about-section img {
    width: 80%;
    height: auto;
  }

  .data-visualization-section h2 {
    font-size: 28px;
  }

  .testimonial-card {
    padding: 20px 15px;
  }
}

@media (max-width: 768px) {
  .navbar a {
    margin: 0 10px;
    font-size: 16px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .hero-section p {
    font-size: 16px;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .features-section {
    padding: 40px 10px;
  }

  .about-section .text-content h2 {
    font-size: 24px;
  }

  .data-visualization-section h2 {
    font-size: 24px;
  }

  .testimonial-card p {
    font-size: 14px;
  }

  .testimonial-card h4 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a {
    margin: 10px 0;
    font-size: 14px;
  }

  .hero-section {
    height: 500px;
    padding: 0 10px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .hero-section p {
    font-size: 14px;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .features-section {
    padding: 30px 10px;
    gap: 20px;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .feature-card p {
    font-size: 14px;
  }

  .about-section .text-content h2 {
    font-size: 20px;
  }

  .data-visualization-section h2 {
    font-size: 20px;
  }

  .back-to-top {
    padding: 12px;
    bottom: 20px;
    right: 20px;
  }
}

/* 动画效果：元素淡入淡出 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 2s forwards;
}

/* 鼠标悬停时图片旋转效果 */
.image-rotate:hover {
  transform: rotate(10deg);
  transition: transform 0.5s ease-in-out;
}

/* 按钮点击动画 */
.button-click:active {
  transform: scale(0.95);
  transition: transform 0.1s ease-in-out;
}

/* 图标样式统一 */
.icon {
  width: 40px;
  height: 40px;
  fill: var(--primary-color);
  transition: fill 0.3s ease, transform 0.3s ease;
}

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

