/* 产品图片画廊 */
.product-media-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative; /* 为箭头按钮定位做准备 */
  margin-bottom: 30px; /* 增加底部间距 */
}

.product-media-gallery__main {
  width: 100%;
  position: relative;
  margin-bottom: 15px;
}

.product-media-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-media-gallery__thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* 允许缩略图换行 */
  padding: 5px 0;
  justify-content: center;
  max-width: 80%;
  margin: 0 auto;
  min-height: 60px;
}

.product-media-gallery__thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  margin-bottom: 10px; /* 添加底部间距 */
}

.product-media-gallery__thumbnail.is-active {
  opacity: 1;
  border: 2px solid #95683f;
}

.product-media-gallery__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 添加左右箭头按钮 */
.product-media-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media-gallery__nav--prev {
  left: 10px;
}

.product-media-gallery__nav--next {
  right: 10px;
}

/* 寄仓服务折叠框 */
.product-storage-service {
  margin-top: 20px;
}

.storage-service__toggle {
  width: 100%;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  background-color: #f8f8f8; /* 浅灰色背景 */
}

.storage-service__title {
  font-size: 16px;
  font-weight: 500;
  color: #95683f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.storage-service__content {
  padding: 20px;
  display: block;
  height: 0;
  overflow: hidden;
  overflow-y: auto;
  max-height: 300px;
  transition: height 0.3s ease, opacity 0.3s ease;
  background-color: #ffffff;
  opacity: 0;
  scrollbar-width: thin;
  scrollbar-color: #d7bdaf #ffffff;
}

/* Webkit浏览器的滚动条样式 */
.storage-service__content::-webkit-scrollbar {
  width: 6px;
}

.storage-service__content::-webkit-scrollbar-track {
  background: #f0f7ff;
}

.storage-service__content::-webkit-scrollbar-thumb {
  background-color: #95683f;
  border-radius: 3px;
}

.storage-service__text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  max-height: none;
}

.storage-service__text p {
  margin: 0 0 12px;
  position: relative;
  padding-left: 0;
  line-height: 1.8;
  white-space: normal; /* 让文本正常换行 */
}

/* 调整数量选择器样式 */
.product-form__quantity {
  margin-bottom: 0;
  height: 60px; /* 与缩略图高度一致 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quantity {
  height: 40px; /* 调整数量选择器高度 */
}

/* 调整按钮样式 */
.product-form__buttons {
  display: flex;
  align-items: center;
  height: 60px; /* 与缩略图高度一致 */
}

.product-form__submit {
  height: 40px; /* 调整按钮高度 */
  margin: 0;
}

/* 调整分享按钮位置 */
.small-hide {
  margin-top: -50px; /* 上移分享按钮 */
  margin-bottom: 20px;
  text-align: right;
}

/* 产品详情折叠面板 */
.product-details {
  margin-top: 40px;
}

.product-details__section {
  margin-bottom: 10px;
  position: relative;
}

.details-toggle {
  width: 100%;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: none;
  cursor: pointer;
  border: 1px solid #eee;
  border-radius: 4px;
}

.details-title {
  font-size: 16px;
  font-weight: 500;
  color: #95683f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.details-content {
  padding: 20px;
  display: block;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease, opacity 0.3s ease;
  background-color: #ffffff;
  opacity: 0;
  overflow-y: auto;
  max-height: 300px;
  scrollbar-width: thin;
  scrollbar-color: #d7bdaf #ffffff;
  visibility: hidden;
  position: absolute;
  width: 100%;
}

/* Webkit浏览器的滚动条样式 */
.details-content::-webkit-scrollbar {
  width: 6px;
}

.details-content::-webkit-scrollbar-track {
  background: #f0f7ff;
}

.details-content::-webkit-scrollbar-thumb {
  background-color: #95683f;
  border-radius: 3px;
}

.details-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  max-height: none;
}

.details-text p {
  margin: 0 0 12px;
  position: relative;
  padding-left: 0;
  line-height: 1.8;
  white-space: normal;
}

.product-details__images {
  margin-bottom: 30px;
}

.details-image {
  margin-bottom: 20px;
}

.details-image:last-child {
  margin-bottom: 0;
}

.details-image img {
  width: 100%;
  height: auto;
  display: block;
}

.faq-title {
  font-size: 18px;
  font-weight: 500;
  color: #95683f;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: #f8f8f8;
}

.faq-content {
  padding: 0 20px;
  display: block;
  height: auto;
  opacity: 1;
}

.faq-list {
  padding: 20px;
  background: #fff;
  margin: 0;
}

.faq-item {
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  padding-left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
  margin-top: 0;
  padding: 0;
}

.faq-answer {
  color: #666;
  margin: 0;
  line-height: 1.6;
  padding: 0 0 0 20px;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #95683f;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.icon-circle .icon {
  width: 14px;
  height: 14px;
}

/* 鼠标悬停时旋转效果 */
.details-toggle:hover .icon-circle {
  transform: rotate(180deg);
}

/* 展开状态时保持旋转 */
.details-toggle[aria-expanded="true"] .icon-circle {
  transform: rotate(180deg);
}

/* 当展开时显示内容 */
.details-toggle[aria-expanded="true"] + .details-content {
  visibility: visible;
  position: static;
}

.faq-title {
  font-size: 18px;
  font-weight: 500;
  color: #95683f;
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
