/* 全局样式 */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f5f7fa;
  color: #333;
}

.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 头部样式 */
header {
  position: relative;
  height: 100vh; /* 占满整个屏幕高度 */
  background: linear-gradient(
    135deg,
    #4a90e2,
    #f5a623
  ); /* 渐变背景，蓝色到橙色 */
  color: #fff; /* 白色字体 */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

header {
  position: relative;
  height: 100vh;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero {
  background: rgba(0, 0, 0, 0.5); /* 半透明黑色背景，保证文字可读性 */
  padding: 20px;
  border-radius: 10px;
}

.hero .btn {
  background: #f5a623;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.hero .btn:hover {
  background: #f08200; /* 鼠标悬停时更深的橙色 */
  transform: scale(1.1); /* 鼠标悬停时轻微放大 */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-content .btn {
  background: #0078d4;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.hero-content .btn:hover {
  background: #0056a1;
}

/* 导航栏 */
nav {
  background: #1e1e1e;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 15px 0;
  display: inline-block;
  font-weight: bold;
}

nav ul li a:hover {
  color: #0078d4;
}

/* 内容部分 */
.section {
  margin: 40px 0;
  padding: 40px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section.bg-light {
  background: #f5f7fa;
}

/* 服务范围布局 */
.grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  perspective: 1000px; /* 设置 3D 透视效果 */
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 初始阴影 */
  text-align: center;
  flex: 1 1 30%; /* 每张卡片宽度占 30% */
  transition: transform 0.5s ease, box-shadow 0.5s ease; /* 添加动画 */
  transform-style: preserve-3d; /* 保持 3D 效果 */
  position: relative;
}

.card h3 {
  margin-bottom: 15px;
  color: #005f73;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* 鼠标悬停时的强烈 3D 效果 */
.card:hover {
  transform: translateZ(50px) rotateX(-5deg); /* 卡片向前移动并略微旋转 */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* 增强阴影效果 */
  cursor: pointer; /* 鼠标变为手形 */
}

/* 悬停时标题变化 */
.card:hover h3 {
  color: #f5a623; /* 标题颜色变为橙色 */
}

/* 悬停时描述文字变化 */
.card:hover p {
  color: #333; /* 描述文字颜色加深 */
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1; /* 保持在卡片后方 */
  border-radius: 10px;
}

/* 鼠标悬停时的背景光效 */
.card:hover::before {
  opacity: 1; /* 背景光渐显 */
}

/* 页脚背景和外层样式 */
footer {
  background-color: #ffffff;
  padding: 20px 0;
  color: #7371ef;
  text-align: center;
}

/* 内部内容容器样式 */
.footer-wrapper {
  max-width: 1200px; /* 最大宽度限制 */
  margin: 0 auto; /* 保证水平居中 */
  padding: 0 20px; /* 内边距确保内容不贴边 */
}

.footer-content {
  display: flex; /* 使用 flexbox 布局 */
  justify-content: space-between; /* 左右内容分布 */
  align-items: center; /* 垂直居中对齐 */
  flex-wrap: wrap; /* 小屏幕自动换行 */
  gap: 20px; /* 左右内容的间距 */
}

/* 页脚文字样式 */
.footer-content span {
  font-size: 0.9rem;
  white-space: nowrap; /* 避免文字换行 */
}

