* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.top-bar {
  background-color: #0066cc;
  color: white;
  padding: 10px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar .welcome {
  flex: 1;
}

.top-bar .contact-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar a {
  color: white;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 60px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: bold;
  color: #0066cc;
}

.logo-text span {
  font-size: 14px;
  color: #666;
}

nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #0066cc;
}

/* Banner */
.banner {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.banner-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.banner-indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.banner-indicator.active {
  background-color: white;
}

.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.3s;
}

.banner-prev:hover,
.banner-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.banner-prev {
  left: 20px;
}

.banner-next {
  right: 20px;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 28px;
  color: #0066cc;
  margin-bottom: 10px;
}

.section-title .line {
  width: 80px;
  height: 3px;
  background-color: #0066cc;
  margin: 0 auto;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-item .product-info {
  padding: 20px;
}

.product-item h3 {
  font-size: 18px;
  color: #0066cc;
  margin-bottom: 10px;
}

.product-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* About Section */
.about-content {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.about-content p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

/* Applications */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.application-item {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.application-item:hover {
  transform: translateY(-3px);
}

.application-item i {
  font-size: 36px;
  color: #0066cc;
  margin-bottom: 15px;
}

.application-item h4 {
  font-size: 16px;
  color: #333;
}

/* FAQ */
.faq-section {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.faq-question:hover {
  color: #0066cc;
}

.faq-question span {
  font-size: 24px;
  color: #0066cc;
  transition: transform 0.3s;
}

.faq-question.active span {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 20px 0;
  color: #666;
  line-height: 1.8;
  display: none;
}

.faq-answer.active {
  display: block;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.contact-item {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contact-item i {
  font-size: 32px;
  color: #0066cc;
  margin-bottom: 15px;
}

.contact-item h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.contact-item p,
.contact-item a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
}

.contact-item a:hover {
  color: #0066cc;
}

.qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-code img {
  width: 150px;
  height: 150px;
}

.qr-code span {
  font-size: 14px;
  color: #666;
}

/* Douyin Section */
.douyin-section {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.douyin-section h3 {
  text-align: center;
  color: #0066cc;
  margin-bottom: 30px;
  font-size: 24px;
}

.douyin-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.douyin-item {
  text-align: center;
}

.douyin-item img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.douyin-item span {
  font-size: 14px;
  color: #666;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 30px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content p {
  font-size: 14px;
  color: #ccc;
}

.footer-content a {
  color: #00a8ff;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .top-bar .contact-info {
    justify-content: center;
  }

  header .container {
    flex-direction: column;
  }

  nav ul {
    justify-content: center;
    gap: 15px;
  }

  .banner {
    height: 250px;
  }

  .about-content,
  .faq-section,
  .douyin-section {
    padding: 20px;
  }

  .footer-content {
    text-align: center;
  }
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  transition: opacity 0.3s;
}

.scroll-top:hover {
  background-color: #0055aa;
}

.scroll-top.show {
  display: block;
}
