/* CSS Document */
.news-page {
  padding-bottom: 50px;
}

.news-wrap {
  margin-top: 34px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.news-main {
  flex: 1;
  min-width: 0;
}

.news-side {
  width: 320px;
  flex: 0 0 auto;
}

.news-item,
.side-box,
.news-main > .detail-title,
.news-main .detail-content,
.product-detail-page .card,
.pro-left,
.pro-right {
  background: #fff;
}

.news-item {
  display: flex;
  gap: 22px;
  padding: 22px;
  margin-bottom: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.news-img {
  width: 240px;
  height: 160px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: #eee;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s ease;
}

.news-item:hover .news-img img {
  transform: scale(1.05);
}

.news-info {
  flex: 1;
  min-width: 0;
}

.news-title {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.45;
}

.news-title a {
  color: var(--primary);
}

.news-title a:hover {
  color: var(--primary-light);
}

.news-desc {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #8a8f8d;
  font-size: 13px;
}

.news-more {
  color: var(--primary);
  font-weight: 600;
}

.side-box {
  padding: 22px;
  margin-bottom: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.side-box h3 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--primary);
  font-size: 18px;
}

.side-list li {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed #e6ded2;
}

.side-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.side-list a {
  color: var(--text-light);
  line-height: 1.7;
}

.side-list a:hover {
  color: var(--primary);
}

.contact-box p {
  margin: 0 0 8px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

.side-images {
  display: grid;
  gap: 10px;
}

.side-images img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

/* news detail */
.detail-title {
  margin: 0;
  padding: 30px 30px 18px;
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  color: var(--primary);
  font-size: 30px;
  line-height: 1.45;
}

.detail-meta {
  padding: 0 30px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--text-light);
  font-size: 14px;
}

.detail-content {
  padding: 24px 30px 30px;
  border: 1px solid var(--line);
  border-top: 1px solid #eee8dd;
  border-radius: 0 0 18px 18px;
  color: #33413e;
  font-size: 16px;
  line-height: 2;
  box-shadow: var(--shadow);
}

.detail-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}

/* product list */
.pro-page {
  width: var(--container);
  max-width: calc(100% - 40px);
  margin: 40px auto 60px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.pro-left {
  width: 240px;
  flex: 0 0 auto;
  padding: 26px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pro-left .ttl {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
}

.pro-left a {
  min-height: 48px;
  margin-bottom: 10px;
  padding: 0 16px;
  border-radius: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: .25s ease;
}

.pro-left a::after {
  content: "›";
  font-size: 22px;
}

.pro-left a:hover,
.pro-left a.on {
  color: #fff;
  background: var(--primary);
}

.pro-right {
  flex: 1;
  min-width: 0;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pro-tabs {
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pro-tabs a {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-light);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
}

.pro-tabs a:hover,
.pro-tabs a.on {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pro-item {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: .28s ease;
}

.pro-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.pro-item a {
  display: block;
  padding-bottom: 22px;
}

.pro-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f7f4ee;
}

.pro-item h3 {
  margin: 18px 16px 8px;
  text-align: center;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.45;
}

.pro-item p {
  min-height: 50px;
  margin: 0 16px 18px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

.pro-item a::after {
  content: "查看详情";
  width: 122px;
  height: 40px;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(30,76,68,.45);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
}

.pro-item:hover a::after {
  color: #fff;
  background: var(--primary);
}

/* product detail */


.product-detail-page .top {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
 margin-top: 40px;
}

.product-detail-page .card {
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-img {
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

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

.product-detail-page .info {
  padding: 28px;
}

.product-detail-page .title {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
}

.product-detail-page .desc {
  margin-bottom: 18px;
  color: var(--text-light);
  line-height: 1.8;
}

.specs {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.spec-item {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #f6f1e8;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-ico svg {
  width: 17px;
  height: 17px;
}

.spec-label {
  width: 72px;
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 700;
}

.spec-value {
  flex: 1;
  color: var(--text-light);
  line-height: 1.6;
}

.product-detail-page .section {
  padding: 0;
  margin-bottom: 22px;
}

.section-title {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbf8f2);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .ico {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-title .ico svg {
  width: 13px;
  height: 13px;
}

.features {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature {
  padding: 16px;
  border-radius: 16px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  display: flex;
  gap: 12px;
}

.feature-ico {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(166,123,82,.55);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-ico svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

.feature h4 {
  margin: 0 0 5px;
  color: var(--primary);
}

.feature p {
  margin: 0;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
}

.text-box,
.content-box,
.nutrition,
.related {
  padding: 20px;
  color: #33413e;
  line-height: 1.95;
}
.features-text-box{
  text-align: center;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(135, 100, 50, .08);
}
.features-text-box span{
  display: inline-block;
  max-width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #7a5b31;
  font-size: 16px;
	letter-spacing:4px;
  line-height: 1.8;
  box-shadow: 0 4px 12px rgba(122, 91, 49, .05);
}
.content-box img {
  max-width: 100% !important;
  height: auto !important;
}

.nutrition-grid {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.nutrition table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.nutrition th,
.nutrition td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.nutrition th {
  background: #fbf8f2;
  color: var(--primary);
}

.note {
  margin-top: 8px;
  color: var(--text-light);
  font-size: 13px;
}

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

.related-item {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: .25s ease;
}

.related-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.related-img {
  aspect-ratio: 1 / 1;
  background: #f7f4ee;
}

.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-tit {
  padding: 12px;
  text-align: center;
  color: var(--primary);
  font-size: 14px;
}

.prevnext {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.prevnext a {
  flex: 1;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary);
}

@media (max-width: 991px) {
  .news-wrap,
  .pro-page,
  .product-detail-page .top {
    flex-direction: column;
    display: block;
  }

  .news-side,
  .pro-left,
  .pro-right {
    width: 100%;
  }

  .news-side,
  .pro-right,
  .product-detail-page .top .card + .card {
    margin-top: 22px;
  }

  .pro-grid,
  .features,
  .related-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .nutrition-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .news-wrap,
  .pro-page {
    max-width: calc(100% - 24px);
    margin-top: 24px;
  }

  .news-item {
    flex-direction: column;
    padding: 16px;
  }

  .news-img {
    width: 100%;
    height: 210px;
  }

  .detail-title {
    padding: 22px 18px 14px;
    font-size: 24px;
  }

  .detail-meta {
    padding: 0 18px 16px;
  }

  .detail-content {
    padding: 20px 18px;
  }

  .pro-page {
    display: flex;
    gap: 18px;
  }

  .pro-left,
  .pro-right {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .pro-grid,
  .features,
  .related-list {
    grid-template-columns: 1fr;
  }

  .product-detail-page {
    max-width: calc(100% - 24px);
    padding-top: 24px;
  }

  .product-img,
  .product-img img {
    min-height: 260px;
  }

  .product-detail-page .info {
    padding: 22px 18px;
  }

  .product-detail-page .title {
    font-size: 26px;
  }

  .spec-item {
    align-items: flex-start;
  }

  .prevnext {
    flex-direction: column;
  }
}
