/* 商品详情主体 */
.product-detail-container {
  display: flex;
  gap: 30px;
  margin: 20px 0 40px;
}

/* 左侧图片展示区 */
.product-gallery {
  width: 50%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.main-image {
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.main-image img {
  max-width: 100%;
  /* max-height: 80%; */
  transition: transform 0.3s;
}

.zoom-lens {
  position: absolute;
  border: 1px solid #ddd;
  background: rgba(255, 255, 255, 0.3);
  display: none;
  cursor: none;
}

.zoom-result {
  position: absolute;
  top: 0;
  left: calc(100% + 20px);
  width: 100%;
  height: 100%;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: none;
  overflow: hidden;
}

.thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #ff6a00;
}

.thumbnail img {
  max-width: 90%;
  max-height: 90%;
}

/* 右侧商品信息区 */
.product-info {
  width: 100%;
  padding: 0px;
}

.product-header {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 20px;
}

.product-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #333;
}

.product-subtitle {
  color: #e53935;
  font-size: 1rem;
  margin-bottom: 15px;
}

.product-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 15px;
}

.current-price {
  font-size: 2rem;
  color: #ff6a00;
  font-weight: bold;
  margin-right: 15px;
}

.original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 1.2rem;
}

.discount {
  background: #ff6a00;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-left: 15px;
}

.promotions {
  background: #fff8e6;
  border-radius: 4px;
  padding: 15px;
  margin: 20px 0;
}

.promo-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #e53935;
}

.promo-list {
  list-style: none;
}

.promo-list li {
  margin-bottom: 8px;
  display: flex;
}

.promo-list i {
  color: #ff6a00;
  margin-right: 8px;
  margin-top: 4px;
}

.specifications {
  margin: 25px 0;
}

.spec-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #333;
}

.spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.spec-option {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.spec-option:hover,
.spec-option.active {
  border-color: #ff6a00;
  color: #ff6a00;
  background: #fff0e6;
}

.spec-option.disabled {
  color: #ccc;
  border-color: #eee;
  cursor: not-allowed;
}

.quantity {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

.quantity-label {
  margin-right: 15px;
  font-weight: 500;
}

.quantity-control {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  background: #f9f9f9;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.quantity-input {
  width: 60px;
  height: 40px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 1rem;
}

.actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.add-to-cart {
  flex: 1;
  background: #ff6a00;
  color: white;
  border: none;
  padding: 14px !important;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.add-to-cart:hover {
  background: #e55e00;
}

.buy-now {
  flex: 1;
  background: #e53935;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.buy-now:hover {
  background: #c62828;
}

.action-buttons {
  display: flex;
  margin-top: 15px;
  gap: 15px;
}

.action-btn {
  flex: 1;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.action-btn:hover {
  color: #ff6a00;
  border-color: #ff6a00;
}

/* 商品详情区域 */
.detail-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-top: 30px;
}

.section-title {
  font-size: 1.5rem;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.detail-content {
  line-height: 1.8;
  color: #555;
}

.detail-content img {
  max-width: 100%;
  margin: 20px 0;
}

/* 评价区域 */
.reviews {
  margin-top: 30px;
}

.review-summary {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.review-rating {
  text-align: center;
  padding: 20px;
  border-right: 1px solid #eee;
  min-width: 200px;
}

.rating-score {
  font-size: 2.5rem;
  color: #ff6a00;
  font-weight: bold;
}

.rating-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin: 5px 0;
}

.rating-count {
  color: #666;
}

.rating-bars {
  flex: 1;
  padding: 0 30px;
}

.rating-bar {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.rating-label {
  width: 80px;
  color: #666;
}

.rating-progress {
  flex: 1;
  height: 10px;
  background: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
  margin: 0 15px;
}

.rating-progress-fill {
  height: 100%;
  background: #ff6a00;
}

.rating-percent {
  width: 40px;
  text-align: right;
  color: #666;
}

.review-list {
  margin-top: 30px;
}

.review-card {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.review-user {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #999;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 500;
}

.user-level {
  font-size: 0.8rem;
  color: #ff6a00;
}

.review-stars {
  color: #ffc107;
}

.review-content {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.review-images {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.review-image {
  width: 80px;
  height: 80px;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 0.9rem;
}

.review-actions a {
  color: #666;
  margin-left: 15px;
  text-decoration: none;
}

.review-actions a:hover {
  color: #ff6a00;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .product-detail-container {
    flex-direction: column;
    gap: 15px;
    margin: 0px;
  }
  .detail-section {
    margin-top: 10px;
  }
  .product-title {
    font-size: 1.2rem;
  }
  .current-price {
    font-size: 1.4rem;
  }
  .product-gallery,
  .product-info {
    width: 100%;
  }
  .product-header {
    padding: 10px;
  }
  .quantity {
    margin: 10px 0;
  }

  .main-image {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    margin-bottom: 15px;
    text-align: center;
  }

  .search-bar {
    max-width: 100%;
    margin-bottom: 15px;
  }

  .nav-icons {
    justify-content: center;
  }

  .main-image {
    height: 300px;
  }

  .actions {
    flex-direction: column;
  }

  .review-summary {
    flex-direction: column;
  }

  .review-rating {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }
}

#gift_color {
  height: 35px;
}

#gift {
  height: 35px;
  max-width: 80%;
}

.detail-section img {
  max-width: 100%;
}
.attr_img {
  width: 25%;
}
.attr_img img {
  width: 100%;
}
