body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-image:url(../images/beijing.jpg) ;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

nav {
  background-color: #ad1919;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

nav li {
  float: left;
}

nav li a {
  display: block;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

nav li a:hover {
  background-color: #bd1a1a;
}

header {
  background-color: rgba(255, 255, 255, 0.8);
  color: #cc0e0e;
  text-align: center;
  padding: 40px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section {
  padding: 30px;
  margin: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.9);
}

.product {
  display: inline-block;
  width: 400px;
  margin: 15px;
  text-align: center;
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product:hover {
  transform: translateY(-5px);
}

img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}

footer {
  background-color: #b90a0a;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-links a {
  color: white;
  margin: 0 10px;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #ccc;
}

.testimonial-container {
  overflow: hidden;
  position: relative;
  height: 200px;
  width: 100%;
}

.testimonial {
  position: absolute;
  white-space: nowrap;
  animation: flow linear infinite;
  animation-duration: 10s;
  top: 0;
  left: 100%;
  padding: 10px;
  border-radius: 5px;
  background-color: rgb(179, 3, 3);
  border: 1px solid #ef899f;
}


@keyframes flow {
  0% {
    transform: translateY(0) translateX(0);
    left: 100%;
  }
  100% {
    transform: translateY(0) translateX(-100%);
    left: 0;
  }
}


.testimonial:nth-child(even) {
  top: 30px; /* 偶数弹幕的垂直偏移量 */
}


.testimonial:nth-child(3n) {
  top: 60px; /* 每隔三个弹幕的垂直偏移量 */
}


.testimonial:nth-child(5n) {
  top: 90px; /* 每隔五个弹幕的垂直偏移量 */
}


.testimonial {
  margin-bottom: 20px;
  padding: 15px;
  border-left: 3px solid #b5242d;
  background-color: rgba(242, 120, 118, 0.229);
  border-radius: 5px;
}


.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input[type="submit"], input[type="reset"] {
  background-color: #FF6600;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover, input[type="reset"]:hover {
  background-color: #e65c00;
}

.contact-info {
  margin-top: 20px;
  text-align: center;
}

.contact-info p {
  margin: 10px 0;
}

.contact-info i {
  margin-right: 10px;
  color: #FF6600;
}

.contact-animation {
  text-align: center;
  margin-top: 30px;
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}.about-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}


.about-image {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
