/* 全局样式 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  /* 根据导航栏高度调整 */
  padding: 60px 0 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 导航栏 */
.navbar {
  background: #000;
  color: #fff;
  padding: 1rem 0;
  position: fixed; /* 固定定位 */
  top: 0;          /* 距离页面顶部0px */
  left: 0;         /* 距离页面左侧0px */
  width: 100%;     /* 宽度占满整个页面 */
  z-index: 1000;   /* 确保导航栏在其他内容之上 */
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

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

.nav-links li a {
  color: #fff;
  text-decoration: none;
}

/* 首页横幅 */
.hero {
  /* 移除原有的背景图片设置 */
  background: url('./images/hero.png') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 16rem 0;
  position: relative; /* 确保可以定位内部元素 */
  overflow: hidden; /* 防止视频溢出容器 */
  height: 40vh; /* 设置 hero 的高度为视口高度 */
}


#header-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 使视频覆盖整个区域 */
  z-index: -1; /* 确保视频位于内容之下 */
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .btn {
  background: #ff6600;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
}

/* 关于我们 */
.about {
  padding: 2rem 0;
  text-align: center;
}

/* 服务 */
.services {
  padding: 2rem 0;
  background: #f9f9f9;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 40px;
  gap: 1rem;
  text-align: center;
}

.service-img {
  display: block;
  width: 100%;
  height: auto; /* 保持图片宽高比 */
}

.service-item {
  background: #fff;
  /*padding: 1rem;*/
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-height: 270px;
}
/* 鼠标悬停时的样式 */
.service-item:hover {
  background-color: #6c757d; /* 背景色变为蓝色 */
  color: white;           /* 字体颜色变为白色 */
  text-decoration: none;  /* 移除下划线 */
  /*border-radius: 5px;*/
  /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
  text-align: center;
}

/* 新闻 */
.news {
  padding: 2rem 0;
}

.news-list {
  display: flex;
  gap: 1rem;
}

.news-item {
  background: #fff;
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.social-links li a {
  color: #fff;
  text-decoration: none;
}
/* 移除所有超链接的下划线，并设置默认颜色 */
a {
  text-decoration: none;
  color: #000; /* 设置为你希望的颜色 */
}

/* 保持鼠标悬停时的样式 */
a:hover {
  text-decoration: none;
  color: #000; /* 设置为你希望的颜色 */
}
