/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar .logo img {
  height: 50px;
}

.navbar .nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar .nav-links .menu-horizontal {
  border-bottom: none;
  font-size: 16px;
  background: transparent;
  display: flex;
  list-style: none;
}

.navbar .nav-links .menu-item {
  padding: 0 20px;
  line-height: 80px;
  cursor: pointer;
  transition: color 0.3s;
}

.navbar .nav-links .menu-item:hover,
.navbar .nav-links .menu-item-selected {
  color: #1890ff;
}

.navbar .nav-links .menu-item::after {
  display: none;
}

.navbar .consult-btn {
  margin-left: 20px;
  background-color: #21a415;
  border: none;
  color: white;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

/* Banner样式 */
.banner {
  padding-top: 80px;
  background: url('https://sitesym.oss-cn-hangzhou.aliyuncs.com/bg_bannar.webp')
    no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-bottom: 80px;
}

.banner .banner-content {
  padding: 100px 0;
  text-align: left;
}

.banner .banner-content h1 {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.banner .banner-content p {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
}

.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: #1890ff;
  border-color: #1890ff;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  border-radius: 0.3rem;
}

.banner .banner-buttons .btn {
  margin: 0 10px;
  height: 46px;
  padding: 0 30px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* 共用区块样式 */
.section {
  padding: 80px 0;
}

.section .section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
  position: relative;
}

.section .section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #1a73e8;
}

/* 产品服务区块 */
.products-section {
  background-color: #f8f9fa;
}

.product-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.product-card {
  flex: 1;
  min-width: 300px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding-top: 40px;
}

.product-card .product-image {
  display: flex;
  justify-content: center;
}

.product-card .product-image img {
  height: 400px;
}

.product-card .product-info {
  padding: 0 25px 25px 25px;
}

.product-card .product-info-content {
  display: flex;
  align-items: center;
  gap: 60px;
  justify-content: center;
}

.product-card .product-info ul {
  margin-bottom: 20px;
}

.product-card .product-info ul li {
  margin-bottom: 10px;
  list-style: none;
}

.product-card .product-info ul li:before {
  content: '✓';
  color: #2b7a4b;
  font-weight: bold;
  margin-right: 4px;
}

.product-card .product-info .qrcode {
  text-align: center;
}

.product-card .product-info .qrcode img {
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
}

.product-card .product-info .qrcode p {
  color: #666;
}

/* 设备介绍区块 */
.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-wrapper {
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  position: absolute;
  left: 100%;
  transition: left 0.8s ease-in-out;
  visibility: hidden;
}

.carousel-slide.active {
  visibility: visible;
  left: 0;
  position: relative;
}

.carousel-slide.prev {
  left: -100%;
  visibility: visible;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.carousel-prev,
.carousel-next {
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.carousel-indicator.active {
  background-color: #1a73e8;
}

.device-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
}

.device-image {
  width: 560px;
}

.device-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.device-info {
  width: 460px;
}

.device-info h3 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.device-features .feature {
  margin-bottom: 25px;
}

.device-features .feature h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1a73e8;
}

.device-features .feature p {
  color: #666;
  line-height: 1.6;
}

/* 客户案例区块 */
.cases-section {
  background-color: #f8f9fa;
  overflow: hidden;
}

.scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.scroll-content {
  display: flex;
  gap: 24px;
  animation: scroll 20s linear infinite;
}

.scroll-content:hover {
  animation-play-state: paused;
}

.case-card {
  flex: 0 0 374px;
  height: 374px;
  margin-bottom: 24px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-card-cover img {
  width: 374px;
  height: 210px;
  object-fit: cover;
}

.case-card-meta {
  padding: 16px;
}

.case-card-meta h3 {
  font-size: 20px;
  margin: 0 0 16px;
}

.case-card-meta p {
  color: #666;
  margin-bottom: 20px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-374px * 4 - 24px * 4)
    ); /* 4个卡片的总宽度（包含间距） */
  }
}

/* 联系我们区块 */
.contact-section {
  background-color: #fff;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 16px;
}

.contact-item i {
  font-size: 16px;
  margin-right: 6px;
  color: #21a415;
}

.qrcodes {
  display: flex;
  margin-top: 30px;
}

.qrcode {
  margin-right: 30px;
  text-align: center;
}

.qrcode img {
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
}

.qrcode p {
  color: #666;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
}

.contact-form h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.form-item {
  margin-bottom: 20px;
  position: relative;
}

.form-item label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-item input,
.form-item textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
}

.form-item input:focus,
.form-item textarea:focus {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  outline: none;
}

.form-item .error-message {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 5px;
}

.form-item .char-count {
  text-align: right;
  color: #888;
  font-size: 12px;
  margin-top: 5px;
}

.form-item button {
  width: 100%;
  height: 40px;
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

/* 页脚样式 */
.footer-wrap {
  background-color: #333;
  color: #fff;
}

.footer {
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-contact {
  width: 340px;
}

.footer-social {
  width: 100px;
}

.footer h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

.footer p {
  color: #ccc;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer ul li a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: #fff;
  font-size: 20px;
}

.social-icons a:hover {
  background-color: #1a73e8;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 14px;
}

/* 工具提示 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-content {
  visibility: hidden;
  width: 200px;
  background-color: white;
  color: black;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .device-content {
    flex-direction: column;
    align-items: center;
  }

  .device-image,
  .device-info {
    width: 100%;
    max-width: 560px;
  }

  .product-card .product-info-content {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    height: 60px;
  }

  .navbar .logo img {
    height: 40px;
  }

  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .navbar .nav-links.active {
    display: block;
  }

  .navbar .nav-links .menu-horizontal {
    display: block;
  }

  .navbar .nav-links .menu-item {
    line-height: 50px;
    padding: 0 15px;
    display: block;
    text-align: center;
  }

  .navbar .consult-btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .banner .banner-content h1 {
    font-size: 32px;
  }

  .banner .banner-content p {
    font-size: 14px;
  }

  .section .section-title {
    font-size: 28px;
  }

  .contact-content {
    flex-direction: column;
  }

  .qrcodes {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .banner .banner-content {
    padding: 60px 0;
  }

  .banner .banner-content h1 {
    font-size: 22px;
  }
  .banner .banner-content p {
    font-size: 14px;
  }

  .product-card .product-image img {
    height: auto;
    max-width: 100%;
  }

  .case-card {
    flex: 0 0 300px;
    height: auto;
  }

  .case-card-cover img {
    width: 100%;
    height: auto;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-300px * 4 - 24px * 4));
    }
  }
}
