/* 全局样式 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo img {
  height: 50px;
}

.logo span {
  height: 50px;
  font-size: 22px;
  color: #e68a00;
  font-weight: bold;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

nav ul li a:hover {
  color: #ff9900;
}

/* 轮播图容器样式，宽度占满屏幕 */
.slider {
  width: 100vw;
  height: 500px;
  position: relative;
  overflow: hidden;
}

/* 图片容器样式 */
.slider-container {
  width: 300%; /* 因为有三张图片，所以宽度为 300% */
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* 图片样式 */
.slide {
  width: 33.3333%; /* 每张图片占容器宽度的三分之一 */
  height: 100%;
  object-fit: cover;
}

.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.prev,
.next {
  cursor: pointer;
  font-size: 30px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}

.company-intro,
.services-preview,
.case-preview,
.contact-preview {
  text-align: center;
}

.contact-desc {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.email-box {
  font-size: 18px;
  color: #0066cc;
  margin-bottom: 20px;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background-color: #ff9900;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.btn:hover {
  background-color: #e68a00;
}

.service,
.case {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.service img,
.case img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
}