* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  color: #333;
  background-color: #fbf7ed;
  font-size: 16px;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fbf7ed;
  color: #333;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 1000;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #004c3f;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: #004c3f;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #004c3f;
  bottom: -5px;
  left: 0;
  transition: width 0.3s;
}

.nav-links a:hover:after {
  width: 100%;
}

/* 主内容区 */
.main-content {
  margin-top: 80px;
}

/* 轮播图 */
.slider {
  position: relative;
  height: 550px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 40px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: absolute;
  bottom: 80px;
  left: 80px;
  color: white;
  max-width: 600px;
}

.slide-content h2 {
  font-size: 38px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.slide-content p {
  font-size: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  line-height: 1.6;
}

/* 手机端轮播图调整 */
@media (max-width: 768px) {
  .slider {
    height: 300px;
    margin-bottom: 30px;
  }

  .slide-content {
    bottom: 40px;
    left: 30px;
    max-width: 85%;
  }

  .slide-content h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .slide-content p {
    font-size: 16px;
    line-height: 1.4;
  }
}

/* 超小屏幕进一步调整 */
@media (max-width: 480px) {
  .slider {
    height: 250px;
  }

  .slide-content {
    bottom: 30px;
    left: 20px;
  }

  .slide-content h2 {
    font-size: 22px;
  }

  .slide-content p {
    font-size: 14px;
  }
}

/* 手机端全局字体调整 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .service-category h3 {
    font-size: 22px;
  }

  .contact-info h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .service-category h3 {
    font-size: 20px;
  }
}

/* 业务板块 */
.services {
  padding: 80px 0;
  background-color: #f9fafb;
  border-radius: 12px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  color: #333;
}

.section-title h2 {
  font-size: 32px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #004c3f;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.service-category {
  width: 45%;
  min-width: 300px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  background-color: white;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-category h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: #004c3f;
  border-left: 4px solid #004c3f;
  padding-left: 15px;
}

.service-list {
  list-style-type: none;
  margin-top: 20px;
}

.service-list li {
  margin-bottom: 15px;
  line-height: 1.6;
  padding-left: 25px;
  position: relative;
}

.service-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #004c3f;
}

/* 页脚 */
footer {
  background-color: #004c3f;
  color: #ffffff;
  padding: 60px 0;
  border-top: 1px solid #eaeaea;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-info {
  width: 100%;
  max-width: 500px;
}

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 25px;
  color: #fbf7ed;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
}

.contact-details li strong {
  display: inline-block;
  white-space: nowrap;
  margin-right: 5px;
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #fbf7ed;
}

.qrcode-container {
  width: 100%;
  max-width: 300px;
  text-align: right;
}

.qrcode {
  text-align: center;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 10px;
  display: inline-block;
}

.qrcode img {
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
}

.qrcode p {
  font-size: 14px;
  color: #333;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-info, .qrcode-container {
    max-width: 100%;
    text-align: center;
    margin-bottom: 30px;
  }

  .contact-details li {
    flex-direction: column;
  }

  .contact-details li strong {
    margin-bottom: 5px;
  }
}

/* 汉堡菜单样式 */
.hamburger-menu {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #004c3f;
  margin: 5px 0;
  transition: 0.4s;
}

.rotate-down {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.fade {
  opacity: 0;
}

.rotate-up {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 0;
    top: 60px;
    width: 100%;
    background-color: #fbf7ed;
    flex-direction: column;
    align-items: center;
    padding: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    height: auto;
    opacity: 1;
    padding: 20px 0;
  }

  .nav-links li {
    margin: 15px 0;
    width: 100%;
    text-align: center;
  }
}
