/* 特色产品详情页专用样式
   默认主题色：石阡绿 #2E8B57
   通过 .slug-* 类为每个产品单独恢复特色主题色 */

.product-detail-header,
.product-detail-body {
  --pd-primary: #2E8B57;
  --pd-bg-light: #F0FFF0;
  --pd-border-light: #98FB98;
}

/* 各产品主题色 */
.product-detail-body.slug-tea,
.product-detail-body.slug-lvdoufen,
.product-detail-body.slug-shenxian-doufu {
  --pd-primary: #2E8B57;
  --pd-bg-light: #F0FFF0;
  --pd-border-light: #98FB98;
}

.product-detail-body.slug-daguan-wine {
  --pd-primary: #8B0000;
  --pd-bg-light: #FFF0F0;
  --pd-border-light: #FFB6C1;
}

.product-detail-body.slug-pidan {
  --pd-primary: #8B4513;
  --pd-bg-light: #FFF8F0;
  --pd-border-light: #FFDAB9;
}

.product-detail-body.slug-huangshuiba {
  --pd-primary: #E67E22;
  --pd-bg-light: #FFF8F0;
  --pd-border-light: #FFDEAD;
}

/* ===== 顶部信息卡 ===== */
.product-detail-header {
  padding: 35px 0 45px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.breadcrumb-trail {
  margin-bottom: 22px;
  color: #888;
  font-size: 14px;
}

.breadcrumb-trail .sep {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumb-trail .current {
  color: var(--pd-primary);
  font-weight: 600;
}

.product-intro-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.product-intro-thumb {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.product-intro-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.product-intro-thumb:hover img {
  transform: scale(1.03);
}

.product-intro-text {
  padding: 10px 0 10px 15px;
}

.category-badge {
  display: inline-block;
  background: var(--pd-bg-light);
  color: var(--pd-primary);
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-name {
  font-size: 32px;
  margin: 0 0 12px;
  color: #222;
  font-weight: bold;
}

.product-summary {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
}

.product-price {
  font-size: 20px;
  color: #e67e22;
  font-weight: 700;
  margin: 0;
}

/* ===== 正文区域 ===== */
.product-detail-body {
  color: #444;
  font-size: 15px;
  line-height: 1.9;
}

.product-detail-body .section {
  padding: 50px 0;
}

.product-detail-body .container,
.product-detail-body .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.product-detail-body .page-title {
  margin-top: 30px;
  color: var(--pd-primary);
  font-weight: bold;
  font-size: 2.6em;
}

.product-detail-body .line {
  height: 3px;
  width: 80px;
  background: var(--pd-primary);
  margin: 20px auto;
}

.product-detail-body .lead {
  color: #666;
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* 图片与图注 */
.product-detail-body .tea-image,
.product-detail-body .product-image,
.product-detail-body .feature-image,
.product-detail-body .process-image,
.product-detail-body .tasting-image,
.product-detail-body .eating-image,
.product-detail-body .culture-image,
.product-detail-body .nutrition-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-detail-body .product-image:hover,
.product-detail-body .feature-image:hover,
.product-detail-body .process-image:hover,
.product-detail-body .tasting-image:hover,
.product-detail-body .eating-image:hover,
.product-detail-body .culture-image:hover,
.product-detail-body .nutrition-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-detail-body .product-image img,
.product-detail-body .feature-image img,
.product-detail-body .process-image img,
.product-detail-body .tasting-image img,
.product-detail-body .eating-image img,
.product-detail-body .culture-image img,
.product-detail-body .nutrition-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.product-detail-body .product-image:hover img,
.product-detail-body .feature-image:hover img,
.product-detail-body .process-image:hover img,
.product-detail-body .tasting-image:hover img,
.product-detail-body .eating-image:hover img,
.product-detail-body .culture-image:hover img,
.product-detail-body .nutrition-image:hover img {
  transform: scale(1.05);
}

.product-detail-body .image-caption,
.product-detail-body .video-caption {
  margin-top: 10px;
  color: #666;
  font-style: italic;
  text-align: center;
  font-size: 0.9em;
}

/* 背景色 */
.product-detail-body .bg-light {
  background-color: var(--pd-bg-light);
}

/* 历史项目 */
.product-detail-body .history-item {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
  border-left: 4px solid var(--pd-primary);
}

.product-detail-body .history-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-detail-body .history-item h4 {
  color: var(--pd-primary);
  margin-bottom: 15px;
  font-weight: bold;
}

/* 列表类 */
.product-detail-body .feature-list,
.product-detail-body .benefit-list,
.product-detail-body .nutrition-list,
.product-detail-body .honor-list {
  list-style: none;
  padding-left: 0;
}

.product-detail-body .feature-list li,
.product-detail-body .benefit-list li,
.product-detail-body .nutrition-list li,
.product-detail-body .honor-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.product-detail-body .feature-list li:before,
.product-detail-body .benefit-list li:before,
.product-detail-body .nutrition-list li:before,
.product-detail-body .honor-list li:before {
  content: "\2022";
  color: var(--pd-primary);
  font-size: 20px;
  position: absolute;
  left: 0;
  top: -2px;
}

.product-detail-body .brewing-steps li,
.product-detail-body .tasting-points li,
.product-detail-body .tasting-steps li,
.product-detail-body .eating-methods li {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* 制作工艺 */
.product-detail-body .process-row {
  margin-top: 30px;
  margin-bottom: 30px;
}

.product-detail-body .process-item {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 20px;
  text-align: center;
}

.product-detail-body .process-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-detail-body .process-item h4 {
  color: var(--pd-primary);
  margin: 15px 0;
  font-weight: bold;
}

/* 荣誉 / 文化 */
.product-detail-body .honor-item,
.product-detail-body .honor-content,
.product-detail-body .culture-content,
.product-detail-body .culture-item {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.product-detail-body .honor-item h4,
.product-detail-body .honor-content h4,
.product-detail-body .culture-content h4,
.product-detail-body .culture-item h4 {
  color: var(--pd-primary);
  margin-bottom: 15px;
  font-weight: bold;
}

/* 标题 */
.product-detail-body h2 {
  color: var(--pd-primary);
  font-weight: bold;
  margin-bottom: 30px;
}

.product-detail-body h3 {
  color: var(--pd-primary);
  font-weight: bold;
  margin-bottom: 20px;
}

.product-detail-body strong {
  color: var(--pd-primary);
  font-weight: 600;
}

/* 特色图片区域 */
.product-detail-body .feature-images {
  margin-top: 40px;
}

/* 购买区块 */
.product-detail-body .buy-section {
  background-color: var(--pd-primary);
  padding: 50px 0;
  margin-top: 50px;
}

.product-detail-body .text-white {
  color: #fff;
}

.product-detail-body .btn-default {
  background-color: #fff;
  color: var(--pd-primary);
  border: 2px solid #fff;
  padding: 12px 35px;
  transition: all 0.3s ease;
  font-weight: bold;
  border-radius: 30px;
  display: inline-block;
  text-decoration: none;
}

.product-detail-body .btn-default:hover {
  background-color: transparent;
  color: #fff;
}

/* 视频容器 */
.product-detail-body .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.product-detail-body .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* 图片边框 */
.product-detail-body .img-thumbnail {
  padding: 4px;
  border: 1px solid var(--pd-border-light);
}

/* 进入动画 */
@keyframes pdFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-detail-body .feature-list li,
.product-detail-body .benefit-list li,
.product-detail-body .nutrition-list li,
.product-detail-body .eating-methods li {
  opacity: 0;
  animation: pdFadeIn 0.5s ease forwards;
}

.product-detail-body .feature-list li:nth-child(1),
.product-detail-body .benefit-list li:nth-child(1),
.product-detail-body .nutrition-list li:nth-child(1),
.product-detail-body .eating-methods li:nth-child(1) { animation-delay: 0.1s; }
.product-detail-body .feature-list li:nth-child(2),
.product-detail-body .benefit-list li:nth-child(2),
.product-detail-body .nutrition-list li:nth-child(2),
.product-detail-body .eating-methods li:nth-child(2) { animation-delay: 0.2s; }
.product-detail-body .feature-list li:nth-child(3),
.product-detail-body .benefit-list li:nth-child(3),
.product-detail-body .nutrition-list li:nth-child(3),
.product-detail-body .eating-methods li:nth-child(3) { animation-delay: 0.3s; }
.product-detail-body .feature-list li:nth-child(4),
.product-detail-body .benefit-list li:nth-child(4),
.product-detail-body .nutrition-list li:nth-child(4),
.product-detail-body .eating-methods li:nth-child(4) { animation-delay: 0.4s; }
.product-detail-body .feature-list li:nth-child(5),
.product-detail-body .benefit-list li:nth-child(5),
.product-detail-body .nutrition-list li:nth-child(5),
.product-detail-body .eating-methods li:nth-child(5) { animation-delay: 0.5s; }

/* 响应式 */
@media (max-width: 768px) {
  .product-detail-header { padding: 25px 0 35px; }
  .product-intro-text { padding: 20px 0 0; }
  .product-name { font-size: 26px; }
  .product-detail-body .section { padding: 40px 0; }
  .product-detail-body .page-title { font-size: 2em; }
  .product-detail-body .history-item,
  .product-detail-body .process-item,
  .product-detail-body .culture-content,
  .product-detail-body .culture-item,
  .product-detail-body .honor-content { height: auto; }
  .product-detail-body .feature-images { margin-top: 20px; }
}
