/* ===== style.css - 诺禾萃 全站样式 ===== */

/* ---------- 全局重置 & 变量 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #fafaf8;
  color: #2d3e4f;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ---------- 通用容器 ---------- */
.w-1620,
.w-1520,
.w-1485 {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.w-100 {
  width: 100%;
}

.text-center {
  text-align: center;
}

/* ---------- 头部 (HEADER) ---------- */
.header {
  background: #d4edd8;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;

  /* 头部本身无圆角，由内部容器实现圆角 */
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  /* 头部容器下方圆角，两边下方圆角 */
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 6px 20px;
  /* 内边距保证内容不贴边 */
  transition: box-shadow 0.3s;
}

/* 品牌 Logo */
.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
}

/* 主导航 */
.nav-list1 {
  display: flex;
  list-style: none;
  gap: 28px;
  font-weight: 500;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-list1>li {
  position: relative;
  cursor: pointer;
  padding: 6px 0;
}

.nav-list1>li>a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
  font-size: 16px;
  color: #2d3e4f;
  display: inline-block;
}

.nav-list1>li:hover>a,
.nav-list1>li.active>a {
  border-bottom-color: #4a9e6b;
  color: #3b7a56;
}

/* 二级下拉菜单 */
.nav-list2 {
  position: absolute;
  top: 36px;
  left: 0;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 14px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  list-style: none;
  z-index: 10;
}

.nav-list1>li:hover .nav-list2 {
  opacity: 1;
  visibility: visible;
}

.nav-list2 li {
  padding: 6px 20px;
}

.nav-list2 li a {
  font-weight: 400;
  color: #2d3e4f;
  font-size: 15px;
}

.nav-list2 li a:hover {
  color: #4a9e6b;
}

/* 右侧电话 & 搜索 */
.head-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef7f1;
  padding: 6px 18px 6px 14px;
  border-radius: 40px;
}

.head-tel .head-p {
  font-size: 14px;
  color: #3b7a56;
}

.head-tel .head-n {
  font-weight: 700;
  color: #1d4d33;
  letter-spacing: 0.5px;
}

.search-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #2d5e44;
  margin-left: 10px;
  cursor: pointer;
  padding: 4px 8px;
}

/* 移动菜单按钮 (默认隐藏) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #1d4d33;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Banner 轮播 (双图横向) ---------- */
.banner-carousel {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 12px auto 0;
  overflow: hidden;
  border-radius: 40px;
  /* 圆角轮播容器 */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  /* 每张幻灯片占满容器宽 */
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* 指示点 */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.carousel-indicators .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: 0.25s;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.carousel-indicators .dot.active {
  background: #4a9e6b;
  transform: scale(1.2);
  background: #3b7a56;
}

/* 左右箭头 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  color: #1d4d33;
  cursor: pointer;
  z-index: 5;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background: #ffffff;
  color: #3b7a56;
}

.carousel-arrow.prev {
  left: 16px;
}

.carousel-arrow.next {
  right: 16px;
}

/* ---------- 品牌简介 ---------- */
.i-about {
  padding: 60px 0;
  background: #ffffff;
}

.i-ab-1 {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.i-ab1-left {
  flex: 1 1 45%;
}

.i-ab1L-logo img {
  height: 42px;
  margin-bottom: 12px;
}

.i-ab1L-t {
  font-size: 28px;
  font-weight: 600;
  color: #1d4d33;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.i-ab1L-p {
  color: #3d4f5e;
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.8;
}

.i-ab1L-a a {
  background: #4a9e6b;
  color: white;
  padding: 10px 32px;
  border-radius: 40px;
  font-weight: 500;
  display: inline-block;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}

.i-ab1L-a a:hover {
  background: #367a52;
}

.i-ab1-right {
  flex: 1 1 45%;
  background: #eef7f1;
  border-radius: 36px;
  padding: 20px;
}

.i-ab1-right img {
  border-radius: 24px;
  width: 100%;
}

/* ---------- 特色产品 DHA ---------- */
.i-new-dha {
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  background-color: #d9e9df;
}

.i-new-dha .left {
  text-align: center;
}

.i-new-dha .left .logo img {
  max-height: 70px;
  margin-bottom: 20px;
}

.i-new-dha .right .bg {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  border-radius: 48px;
  padding: 40px 30px;
  max-width: 700px;
  margin: 0 auto;
}

.circle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.circle .list {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  font-size: 14px;
  font-weight: 500;
  color: #1d4d33;
  border: 1px solid #d4e8dd;
  flex: 0 0 auto;
}

/* ---------- 金标基础营养 ---------- */
.i-new-caihong {
  background-size: cover;
  background-position: center;
  padding: 50px 20px;
  background-color: #f3f8f5;
  margin: 10px 0 30px;
}

.i-new-caihong .left img {
  max-height: 120px;
}

.i-new-caihong .right .list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.i-new-caihong .right .list .li {
  background: #ffffffd9;
  backdrop-filter: blur(2px);
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  color: #1d4d33;
  border: 1px solid #bfd9cc;
}

.i-new-caihong .right .h2 {
  text-align: center;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 4px;
  color: #1d4d33;
  margin-top: 25px;
}

/* ---------- 品牌优势 ---------- */
.i-brand {
  padding: 60px 0;
  background: #fafaf8;
}

.i-brand-left p {
  font-size: 32px;
  font-weight: 600;
  color: #1d4d33;
  margin-bottom: 16px;
}

.i-brand-ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.i-brand-li {
  background: white;
  padding: 28px 18px;
  border-radius: 32px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
  text-align: center;
  transition: 0.25s;
  border: 1px solid #eaefec;
}

.i-brand-li:hover {
  transform: translateY(-6px);
  border-color: #b3d3c2;
}

.i-brand-li img {
  height: 50px;
  margin: 0 auto 14px;
}

.i-brandLi-p1 {
  font-weight: 600;
  font-size: 17px;
  color: #1d4d33;
  margin-bottom: 8px;
}

.i-brandLi-p2 {
  font-size: 14px;
  color: #4d6473;
  line-height: 1.5;
}

.i-brand-bot {
  margin-top: 50px;
  background: #e2eee7;
  border-radius: 60px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.i-brand-b1 {
  font-size: 26px;
  font-weight: 500;
  color: #1d4d33;
}

.i-brand-b2 {
  font-size: 18px;
  color: #2d4f3d;
  font-weight: 400;
}

/* ---------- 新闻中心 ---------- */
.i-news {
  padding: 50px 0;
  background: white;
}

.i-news-t {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.i-news-t span {
  font-size: 28px;
  font-weight: 600;
  color: #1d4d33;
}

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

.i-news-li {
  background: #f8fbf9;
  border-radius: 24px;
  overflow: hidden;
  transition: 0.2s;
  border: 1px solid #e5efea;
}

.i-news-li:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
}

.i-news-li .img-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.i-news-li-txt {
  padding: 18px 18px 22px;
}

.i-news-li-t {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}

.i-news-li-t a {
  color: #1d4d33;
}

.i-news-li-p {
  font-size: 14px;
  color: #4d6473;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.i-news-li-time {
  color: #8a9ba8;
  font-size: 13px;
  margin-top: 12px;
}

/* ---------- 页脚 ---------- */
.foot {
  background: #1d2e26;
  color: #d4e0da;
  padding: 40px 0 20px;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid #3b5547;
  padding-bottom: 30px;
}

.foot-t1 img {
  height: 40px;
  margin-bottom: 12px;
}

.foot-t1-a {
  display: flex;
  gap: 12px;
}

.foot-t1-a img {
  height: 28px;
}

.foot-t2 {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.foot-t2-li .foot-t2-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
}

.foot-t2-a {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot-t2-a a {
  font-size: 14px;
  color: #b7cdc1;
  transition: 0.2s;
}

.foot-t2-a a:hover {
  color: #c7e3d4;
}

.foot-t3 .foot-t3-t {
  color: #fff;
  margin-bottom: 8px;
}

.foot-t3-num {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.foot-t3-tel {
  font-size: 26px;
  font-weight: 600;
  color: #c5e3d4;
}

.foot-t3-time {
  color: #91aea0;
}

.foot-bot {
  margin-top: 24px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  color: #8faa9c;
}

.foot-bot a {
  color: #b0cdbe;
  transition: 0.2s;
}

.foot-bot a:hover {
  color: #d4e8dd;
}

.backtop {
  cursor: pointer;
}

/* ---------- 动画 (wow 占位) ---------- */
.wow {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .i-news-ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-inner {
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    padding: 4px 16px;
  }
}

@media (max-width: 768px) {
  /* 头部 */
  .header-inner {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: 4px 12px;
  }
  .nav-list1 {
    display: none;
    /* 移动端由 JS 控制显示 */
  }
  .nav-toggle {
    display: block;
  }
  .head-tel .head-p {
    display: none;
  }
  .search-btn {
    margin-left: 4px;
  }

  /* 轮播 */
  .banner-carousel {
    border-radius: 24px;
    margin-top: 8px;
  }
  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .carousel-arrow.prev {
    left: 8px;
  }
  .carousel-arrow.next {
    right: 8px;
  }
  .carousel-indicators .dot {
    width: 10px;
    height: 10px;
  }

  /* 内容 */
  .i-ab-1 {
    flex-direction: column;
  }
  .i-news-ul {
    grid-template-columns: 1fr;
  }
  .foot-t2 {
    flex-direction: column;
    gap: 20px;
  }
  .i-brand-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .i-new-caihong .right .h2 {
    font-size: 24px;
  }
  .i-brand-left p {
    font-size: 26px;
  }
  .i-ab1L-t {
    font-size: 24px;
  }
  .circle .list {
    font-size: 12px;
    padding: 8px 14px;
  }
  .i-new-dha .right .bg {
    padding: 24px 16px;
  }
  .i-brand-bot {
    padding: 24px 20px;
    border-radius: 40px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    padding: 2px 10px;
  }
  .logo img {
    height: 36px;
  }
  .head-tel {
    padding: 4px 12px 4px 10px;
  }
  .head-tel .head-n {
    font-size: 14px;
  }
  .banner-carousel {
    border-radius: 16px;
  }
  .carousel-arrow {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .i-about {
    padding: 30px 0;
  }
  .i-brand {
    padding: 30px 0;
  }
  .i-news {
    padding: 30px 0;
  }
  .foot {
    padding: 30px 0 16px;
  }
  .foot-t3-tel {
    font-size: 20px;
  }
}
