
/* 基础样式 */
body {
    font-family: 'Barlow', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
.header-container {
    width: 100%;
    background-color: #018476
;
    position: fixed;  /* 固定定位 */
    top: 0;           /* 固定在顶部 */
    left: 0;
    z-index: 1000;    /* 确保在其他内容之上 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 添加阴影效果 */
}

/* 需要为body添加padding-top，防止内容被导航栏遮挡 */
body {
    padding-top: 70px; /* 根据导航栏高度调整 */
}
a {
  text-decoration: none;
}

/* 鼠标悬停时恢复下划线（可选） */
a:hover {
  text-decoration: none;
}

/* 点击时取消下划线 */
a:active {
  text-decoration: none;
}

/* 已访问链接取消下划线 */
a:visited {
  text-decoration: none;
}
.header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}


.logo h1 {
    color: white; /* 白色文字 */
    font-size: 24px;
    margin: 0;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav ul li {
    margin: 0 15px;
	font-weight: 700;
}

.nav ul li a {
    color: white; /* 白色链接 */
    text-decoration: none;
    font-size: 16px;
	font-weight: 700;
}

.nav ul li a:hover {
    text-decoration: none;
}

.icons {
    display: flex;
    align-items: center;
}

.icons a {
    color: white; /* 白色图标文字 */
    margin: 0 10px;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

.icons a i {
    margin-right: 5px; /* 图标和文字之间的间距 */
}
.cart-icon a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* 汉堡菜单默认隐藏 */
.menu-toggle {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    order: 3; /* 放在最右侧 */
}

/* 移动端样式 */
@media (max-width: 768px) {
    .header {
        padding: 10px 20px;
    }
    
    /* 显示汉堡菜单 */
    .menu-toggle {
        display: block;
    }
    
    /* 默认隐藏导航菜单 */
    .nav {
        width: 100%;
        display: none;
        order: 4; /* 放在最下方 */
		font-weight: 600;
    }
    
    /* 激活时显示导航菜单 */
    .nav.active {
        display: block;
        margin-top: 15px;
		font-weight: 600;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}





/* 英雄区域样式 */
/* Hero区域基础样式 */


/* 内容容器样式 */
.hero-content {
  text-align: center;
  color: #018476
;
  padding: 0 20px;
  z-index: 2;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero {
    height: 400px; /* 手机端适当降低高度 */
    background-attachment: scroll; /* 取消固定背景 */
  }
}

/* 可选：添加遮罩层增强文字可读性 */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
  z-index: 1;
}

/* Hero区域基础样式 */
.hero {
  width: 100%;
  height: 700px;
  background-image: url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  position: relative;
}

.hero h1 {
  font-size: 35px;
  color: #208315;
  margin-bottom: 20px;
 
}

.hero p {
  font-size: 45px;
  color: #208315;
  margin: 10px 0;

}

.discover-btn {
  background-color: #018476
; /* 绿色背景 */
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 30px; /* 圆角效果 */
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s ease;

}

.discover-btn:hover {
  background-color: #0F6C1A; /* 悬停时颜色变深 */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}


/* 响应式调整 */
@media (max-width: 768px) {
  .hero {
    height: 500px;
  }
  
  .hero h1 {
    font-size:30px;
  }
  
  .hero p {
    font-size: 20px;
  }
  
  .discover-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* 产品区域样式 */
.products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.product-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

.product-item h3 {
  font-size: 16px;
  margin: 10px 0;
  color: #1b1b1c;
  text-align: left;
 
}

.product-item p {
  font-size: 16px;
  color: #555555;
  font-weight: bold;
  text-align: left;
  font-weight: 400;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* 健康目标区域样式 */
.health-goals {
  position: relative; /* 为伪元素定位提供基准 */
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  z-index: 1; /* 确保内容在伪元素上方 */
}
.health-goals::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw; /* 满屏宽度 */
  height: 100%;
  background: #f5f5f5;
  z-index: -1; /* 背景置于底层 */
}
.goal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.goal-item {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease; 
	background-color: rgba(0, 0, 0, 0.9); /* 黑色50%透明度 */
}

.goal-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease;
	opacity: 0.5;
 
}

.goal-item:hover::before {
  opacity: 0.9;
}

.goal-item h3 {
  position: relative;
	font-family: "Barlow", serif; 
  z-index: 2;
  color: white;

  padding-top: 80px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.goal-item a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* 为每个目标项设置不同的背景图 */
.goal-item:nth-child(1)::before { background-image: url('images/12.jpg'); }
.goal-item:nth-child(2)::before { background-image: url('images/20.jpg'); }
.goal-item:nth-child(3)::before { background-image: url('images/21.jpg'); }
.goal-item:nth-child(4)::before { background-image: url('images/22.jpg'); }
.goal-item:nth-child(5)::before { background-image: url('images/23.jpg'); }
.goal-item:nth-child(6)::before { background-image: url('images/24.jpg'); }
.goal-item:nth-child(7)::before { background-image: url('images/25.jpg'); }
.goal-item:nth-child(8)::before { background-image: url('images/26.jpg'); }
.goal-item:nth-child(9)::before { background-image: url('images/27.jpg'); }
.goal-item:nth-child(10)::before { background-image: url('images/28.jpg'); }

/* 响应式设计 */
@media (max-width: 1024px) {
  .goal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .goal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .goal-grid {
    grid-template-columns: 1fr;
  }
}




/* 页脚样式 */
.footer {
    background-color: #fff;
    color: white;
    padding: 40px 20px;

}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
	color:#000;
}
.footer-column p {
    margin-bottom: 20px;
	color:#000;
}

.footer-column a {
    color: #018476
;
    text-decoration: none;
}

.footer-column input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
}

.footer-column button {
    background-color: #018476
;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }
    
    .nav li {
        margin: 10px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .product-grid, .goal-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}


.gallery-section {
  background-color: #f5f5f5;

  padding: 40px 0;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: auto;
  height: 71px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.gallery-item p {
  margin-top: 10px;
  font-size: 16px;
  color: #018476
;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.hero-section {
  width: 100%;
  height: 600px;
  background-image: url('images/13.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 1200px;
  padding: 20px;
  z-index: 2;
}

.hero-content h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 30px;
  
}

.hero-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #018476;

  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-button:hover {
  background-color: #333333;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 手机端适配 */
@media (max-width: 768px) {
  .hero-section {
    height: 400px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .hero-button {
    padding: 10px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 300px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
}