/* 通用样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Banner 样式 */
.banner {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-animation {
  color: white;
  font-weight: bold;
  font-size: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.char {
  opacity: 0;
}

.banner img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}


.logo {
  position: absolute;
  top: 20px;
  left: 20px;
}

.banner-nav {
  position: absolute;
  top: 5px;
  right: 20px;
}

.banner-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.banner-nav ul li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 20px 30px;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.banner-nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 导航样式 */



nav {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 4px 0;
  
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
}

nav ul li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 20px 30px;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 产品样式 */
.products {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.product {
  width: 48%;
  padding: 30px;
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.product:hover {
  transform: translateY(-10px);
}

.product h2 {
  margin-top: 0;
  font-size: 28px;
  color: #333;
}

.product img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
}

.product p {
  color: #666;
}

.product video {
  width: 100%;
  border-radius: 10px;
}

/* 咨询表单样式 */
.consultation {
  margin-top: 40px;
  padding: 30px;
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  width: 100%;  /* 调整表单的宽度变小 */

}

.consultation-header {
  display: flex;
  align-items: center;
}

.consultation-header h2 {
  margin-right: 20px;
  font-size: 28px;
  color: #333;
}
.div1 {
    width: 40%;
    display: inline-block;
}

.div2 {
    width: 55%;
    display: inline-block;
}

.consultation form {
  width: 500px;
  margin-right: auto;
  margin-left: 0; /* 实现靠左 */
}

.form-group {
  margin-bottom: 0px;
}

.consultation form label {
  display: block;
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
}

.consultation form input,
.consultation form textarea {
  width: 100%;
  padding: 1px;
  border: 2px solid block;
  border-radius: 10px;
  font-size: 18px;
  color: #333;
  transition: border-color 0.3s ease;
}

.consultation form input:focus,
.consultation form textarea:focus {
  border-color: #007bff;
}

.consultation form input[type="submit"] {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.consultation form input[type="submit"]:hover {
  background-color: #0056b3;
}


img[src="your_consultation_image.jpg"] {
  float: right;
  margin-left: 20px;  /* 可根据需要调整与左侧元素的间距 */
}

/* 关于我们、联系方式、友情链接样式 */
.about-us-container {
  display: flex;
 /* align-items: center;*/
}

.about-us-image {
  width: 300px;
  height: 250px;
  margin-right: 20px;
}

.contact-container {
  display: flex;
  align-items: center;
}

.contact-image {
  width: 200px;
  height: 200px;
  margin-right: 20px;
}


.about-us,
.contact,
.links {
  margin-top: 40px;
  padding: 30px;
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

.about-us h2,
.contact h2,
.links h2 {
  margin-top: 0;
  font-size: 28px;
  color: #333;
}

.about-us p,
.contact p {
  color: #666;
}

/* 友情链接样式 */
.links ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
}

.links ul li a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.links ul li a:hover {
  color: #007bff;
}

/* 版权信息样式 */
.copyright {
  margin-top: 40px;
  padding: 20px;
  background-color: #333;
  color: white;
  font-size: 16px;
  text-align: center;
}

/* 回到顶部样式 */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 80px;
  cursor: pointer;
  z-index: 999;
  transition: opacity 0.3s ease;
  float: right;  /* 添加这一行实现向右浮动 */
}

.back-to-top:hover {
  opacity: 0.8;
}

.back-to-top img {
  width: 40px;
  height: 60px;
}

/* header 部分 样式 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 20px;
  width: 1200px;
  left: 50%;
  transform: translateX(-50%);
}

a {
  color: white;  /* 将链接文字颜色设置为红色，您可以根据需要修改颜色值，如 blue、green 等  */
}

a:hover {
  color: blue;  /* 当鼠标悬停时，链接文字颜色变为黑色  */
}