/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
  background-color: #f7f8fa;
  color: #333;
  line-height: 1.7;
  position: relative;
  padding-bottom: 60px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* 按钮通用样式 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.primary-btn {
  background-color: #4a7c59;
  color: #fff;
}

.primary-btn:hover {
  background-color: #3a6848;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 124, 89, 0.2);
}

.secondary-btn {
  background-color: #fff;
  color: #4a7c59;
  border: 1px solid #4a7c59;
}

.secondary-btn:hover {
  background-color: #f5f9f6;
}

/* 标题通用样式 */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 26px;
  color: #222;
  margin-bottom: 10px;
}

.section-title p {
  font-size: 15px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* 悬浮咨询按钮 */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.float-cta.show {
  opacity: 1;
  visibility: visible;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4a7c59;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
  gap: 8px;
  padding: 10px;
}

.float-btn .icon {
  font-size: 18px;
}

.float-btn:hover {
  background-color: #3a6848;
  transform: scale(1.05);
}

/* 头部导航 */
.header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 99;
}

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

.logo h1 {
  font-size: 22px;
  font-weight: 700;
  color: #4a7c59;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.logo span {
  font-size: 14px;
  color: #666;
  font-weight: normal;
}

/* 桌面端导航 */
.pc-nav ul {
  display: flex;
  gap: 26px;
}

.pc-nav a {
  font-size: 15px;
  color: #333;
  padding: 6px 2px;
}

.pc-nav a:hover {
  color: #4a7c59;
}

.pc-nav .nav-btn {
  background-color: #4a7c59;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
}

.pc-nav .nav-btn:hover {
  background-color: #3a6848;
}

/* 移动端导航 */
.mobile-nav-trigger {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.mobile-nav-trigger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-nav-trigger span:nth-child(1) { top: 0; }
.mobile-nav-trigger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-nav-trigger span:nth-child(3) { bottom: 0; }

.mobile-nav-trigger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mobile-nav-trigger.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-trigger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav ul {
  flex-direction: column;
}

.mobile-nav li {
  padding: 8px 20px;
  border-bottom: 1px solid #f5f9f6;
}

.mobile-nav a {
  display: block;
  width: 100%;
  font-size: 15px;
}

/* Banner区域 */
.banner {
  background: linear-gradient(90deg, #f5f9f6, #eaf1ec);
  padding: 60px 0 70px;
}

.banner-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.banner-text {
  flex: 1;
  min-width: 300px;
}

.banner-text .factory-tag {
  font-size: 14px;
  color: #4a7c59;
  margin-bottom: 10px;
  display: inline-block;
  background-color: #eaf1ec;
  padding: 4px 12px;
  border-radius: 4px;
}

.banner-text h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #222;
}

.banner-text p {
  font-size: 16px;
  color: #555;
  margin-bottom: 22px;
  line-height: 1.8;
}

.banner-img {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.banner-img img {
  max-width: 500px;
  border-radius: 8px;
}

/* 产品优势 */
.advantage {
  padding: 70px 0;
  background-color: #fff;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-item {
  background-color: #f5f9f6;
  padding: 28px 20px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.advantage-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #222;
}

.advantage-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* 产品展示 */
.product {
  padding: 70px 0;
  background-color: #f5f9f6;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.product-info {
  padding: 16px;
}

.product-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.product-info .price {
  color: #4a7c59;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-info .desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

/* 代理优势 */
.why-choose {
  padding: 70px 0;
  background-color: #fff;
}

.why-list {
  max-width: 900px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 10px;
  border-bottom: 1px dashed #e0e0e0;
}

.why-item .num {
  width: 28px;
  height: 28px;
  background-color: #4a7c59;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  margin-right: 14px;
  flex-shrink: 0;
}

.why-item .text h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.why-item .text p {
  font-size: 14px;
  color: #555;
}

/* 合作模式 */
.cooperate {
  padding: 70px 0;
  background-color: #f5f9f6;
}

.cooperate-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cooperate-item {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.cooperate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.cooperate-item h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.cooperate-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* 厂家实力 */
.power {
  padding: 70px 0;
  background-color: #fff;
}

.power-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.power-text {
  flex: 1;
  min-width: 300px;
}

.factory-info {
  background-color: #f5f9f6;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 20px;
  line-height: 1.8;
}

.factory-info p {
  margin-bottom: 10px;
  font-size: 15px;
  color: #333;
}

.factory-info a {
  color: #4a7c59;
  text-decoration: underline;
}

.trust-info p {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
}

.power-img {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.power-img img {
  max-width: 570px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 招商转化 */
.cta {
  padding: 60px 0;
  background-color: #4a7c59;
  color: #fff;
  text-align: center;
}

.cta-content h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.contact-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.qrcode {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qrcode img {
  width: 120px;
  height: 120px;
  border: 4px solid #fff;
  border-radius: 8px;
}

.qrcode p {
  text-align: left;
  font-size: 14px;
  color: #f5f9f6;
  margin: 0;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-link {
  font-size: 14px;
  margin: 0;
}

.email-link a {
  color: #fff;
  text-decoration: underline;
}

.error-tip {
  font-size: 13px;
  color: #f5f9f6;
  margin-top: 10px;
}

.error-tip a {
  color: #fff;
  text-decoration: underline;
}

/* 页脚 */
.footer {
  background-color: #222;
  color: #ccc;
  padding: 30px 0;
  text-align: center;
  font-size: 13px;
  margin-top: 30px;
}

.footer-link {
  margin-bottom: 8px;
}

.footer-link a {
  color: #4a7c59;
  text-decoration: underline;
}

.footer a:hover {
  color: #fff;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .advantage-list, .cooperate-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .banner-text h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .pc-nav {
    display: none;
  }
  .mobile-nav-trigger, .mobile-nav {
    display: block;
  }
  .advantage-list, .cooperate-list, .product-list {
    grid-template-columns: 1fr;
  }
  .banner {
    padding: 40px 0 50px;
  }
  .advantage, .product, .why-choose, .cooperate, .power, .cta {
    padding: 40px 0;
  }
  .float-btn {
    width: 50px;
    height: 50px;
  }
  .power-content {
    flex-direction: column;
  }
  .power-img {
    margin-top: 20px;
  }
  .qrcode {
    flex-direction: column;
    text-align: center;
  }
  .qrcode p {
    text-align: center;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 18px;
  }
  .banner-text h2 {
    font-size: 24px;
  }
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  .qrcode img {
    width: 100px;
    height: 100px;
  }
}