/* 基本样式重置和全局设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f0f0f0;
  overflow-x: hidden; /* 避免水平滚动条 */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

/* 视差背景 */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("your-background-image.jpg"); /* 替换为你的背景图片 */
  background-size: cover;
  background-position: center;
  z-index: -1;
  will-change: transform; /* 优化视差性能 */
}

/* 头部样式 */
header {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

header nav {
  display: flex; /* 设置为 Flex 容器 */
  /* justify-content: center;  移除水平居中 */
  align-items: center; /* 垂直居中 - 如果需要 */
  flex-direction: column; /* 新增：设置主轴方向为垂直方向 */
}

header .logo {
  width: 100%; /* 占据整个宽度 */
  text-align: center; /* 文本居中 */
  margin-bottom: 15px; /* 和下方的导航链接之间加点间距 */
}

header .logo h1 {
  color: #fff;
  font-size: 2.5em;
}

header a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

header li {
  display: inline-block; /* 保持 li 的内联块状特性 */
  margin: 0 25px;
}

header .nav-links {
  list-style: none; /* 去除列表默认样式 */
  display: flex; /* 也设置为 Flex 容器 */
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
}

header a:hover {
  color: #e8491d;
}

/* Hero 部分 */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  color: #fff;
  /* 添加渐变动画 */
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

/* 渐变动画的关键帧 */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-content {
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero h2 {
  font-size: 4em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.5em;
  margin-bottom: 30px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  background-color: #e8491d;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #333;
  transform: scale(1.05); /* 悬停时放大 */
}

/* 公司简介部分 */
.about {
  padding: 100px 0;
  background-color: #fff;
  /* text-align: center;  这一行不再需要 */
}

.about h2 {
  color: #333;
  font-size: 2em;
  margin-bottom: 10px;
  text-align: center; /* 标题仍然居中 */
}

.about-card {
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left; /* 设置文本左对齐 */
}

.about-card p {
  line-height: 1.8em;
  color: #555;
}

.about-card:hover {
  transform: translateY(-10px); /* 悬停时上浮 */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 联系我们部分 */
.contact {
  padding: 100px 0;
  background-color: #f5f5f5;
  text-align: center;
}

.contact h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 30px;
}

.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.contact-info {
  flex: 1;
  padding-right: 50px;
  margin-bottom: 20px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 10px;
  line-height: 1.8em;
}

/* 这里只是模拟图标，实际中要引入图标库 */
.icon-location::before {
  content: "📍";
  margin-right: 5px;
}

.icon-phone::before {
  content: "📞";
  margin-right: 5px;
}

.icon-mail::before {
  content: "✉️";
  margin-right: 5px;
}

.contact-form {
  flex: 1;
}

.contact-form h3 {
  margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

.contact-form textarea {
  height: 180px;
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 30px 0;
  background-color: #333;
  color: #fff;
}
/*备案信息样式*/
.beian-link {
    color: #fff;          /* 设置链接颜色 */
    text-decoration: none; /* 去除下划线 */
    transition: color 0.3s ease;  /* 添加颜色过渡效果 */
}

.beian-link:hover {
    color: #e8491d;       /* 悬停时变为你喜欢的颜色 */
    /* text-decoration: underline;  如果需要，可以添加下划线*/
}

/* 响应式 */
@media (max-width: 768px) {
  /* 保持小屏幕上的样式 */
  .hero h2 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1.2em;
  }

  .about-card {
    margin-bottom: 20px;
  }

  .contact-wrapper {
    flex-direction: column;
  }

  .contact-info {
    padding-right: 0;
  }

  header .nav-links {
    flex-direction: row; /* 小屏幕上水平排列 */
  }

  header li {
    margin: 0 10px; /* 调整列表项间距 */
  }
}