/* 商品详情页样式 */

/* 页面容器 */
.goods-detail-page {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.goods-detail-scroll {
  height: calc(100vh - 120rpx);
  padding-bottom: 120rpx;
}

/* 轮播图区域 */
.goods-swiper-section {
  background: white;
}

/* 商品信息区域 */
.goods-info-section {
  background: white;
  padding: 32rpx 24rpx;
  margin-bottom: 16rpx;
}

.goods-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16rpx;
}

.price-container {
  display: flex;
  align-items: baseline;
}

.current-price {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 48rpx;
  font-weight: 600;
  color: #fa4126;
  margin-right: 16rpx;
}

.original-price {
  font-size: 28rpx;
  color: #999;
  text-decoration: line-through;
  margin-right: 8rpx;
}

.price-suffix {
  font-size: 24rpx;
  color: #999;
}

.sales-info {
  font-size: 24rpx;
  color: #999;
}

.goods-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 16rpx;
}

.goods-description {
  font-size: 28rpx;
  color: #666;
  line-height: 1.5;
  margin-bottom: 32rpx;
}

/* 规格选择区域 */
.spec-section {
  margin-top: 24rpx;
}

.spec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16rpx;
}

.spec-title {
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
}

.spec-selected {
  font-size: 24rpx;
  color: #fa4126;
}

.spec-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24rpx;
  background: #f8f8f8;
  border-radius: 8rpx;
  border: 1rpx solid #e8e8e8;
}

.spec-placeholder {
  font-size: 28rpx;
  color: #666;
}

.spec-arrow {
  width: 24rpx;
  height: 24rpx;
  color: #999;
}

/* 评价区域 */
.review-section {
  background: white;
  padding: 32rpx 24rpx;
  margin-bottom: 16rpx;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24rpx;
}

.review-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
}

.review-more {
  display: flex;
  align-items: center;
}

.review-more-text {
  font-size: 24rpx;
  color: #999;
  margin-right: 8rpx;
}

.review-arrow {
  width: 20rpx;
  height: 20rpx;
  color: #999;
}

.review-stats {
  display: flex;
  align-items: center;
  margin-bottom: 24rpx;
  padding: 24rpx;
  background: #f8f8f8;
  border-radius: 8rpx;
}

.rating-overview {
  display: flex;
  align-items: baseline;
  margin-right: 32rpx;
}

.rating-score {
  font-size: 48rpx;
  font-weight: 600;
  color: #fa4126;
  margin-right: 8rpx;
}

.rating-text {
  font-size: 24rpx;
  color: #666;
}

.rating-details {
  flex: 1;
}

.rating-count {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 8rpx;
}

.rating-percent {
  font-size: 24rpx;
  color: #666;
}

.review-list {
  margin-top: 16rpx;
}

.review-item {
  padding: 24rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
}

.review-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16rpx;
}

.user-name {
  font-size: 24rpx;
  color: #999;
}

.review-time {
  font-size: 20rpx;
  color: #ccc;
}

.review-content {
  font-size: 28rpx;
  color: #333;
  line-height: 1.5;
}

.review-rating {
  display: flex;
  align-items: center;
  margin: 0 16rpx;
}

.star {
  font-size: 20rpx;
  color: #ddd;
  margin-right: 4rpx;
}

.star.active {
  color: #ff9500;
}

/* 详情区域 */
.detail-section {
  background: white;
  padding: 32rpx 24rpx;
}

.detail-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  margin-bottom: 24rpx;
}

.detail-content {
  font-size: 28rpx;
  color: #333;
  line-height: 1.6;
}

.no-detail {
  font-size: 28rpx;
  color: #999;
  text-align: center;
  padding: 48rpx 0;
}

/* 底部操作栏 */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  
  display: flex;
  flex-direction: column;
  padding: 24rpx 32rpx 32rpx;
  box-shadow: 0 -8rpx 24rpx rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.quantity-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24rpx;
  padding-bottom: 24rpx;
  border-bottom: 1rpx solid #f0f0f0;
}

.quantity-label {
  font-size: 28rpx;
  color: #333;
  font-weight: 600;
  line-height: 64rpx;
  height: 64rpx;
  display: flex;
  align-items: center;
}

.quantity-controls {
  display: flex;
  align-items: center;
}

.button-section {
  display: flex;
  gap: 24rpx;
}

.quantity-btn {
  width: 64rpx;
  height: 64rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #ff9500;
  font-size: 32rpx;
  font-weight: bold;
  padding: 0;
}

.quantity-btn:active {
  opacity: 0.7;
}

.quantity-input {
  width: 300rpx;
  height: 64rpx;
  border: none;
  font-size: 32rpx;
  color: #333;
  font-weight: 600;
  text-align: center;
  background: transparent;
  padding: 0;
  margin: 0;
}

.quantity-input:focus {
  outline: none;
}

.add-cart-btn {
  flex: 1;
  background: linear-gradient(135deg, #ff9500, #ff7b00);
  color: white;
  border: none;
  padding: 24rpx 0;
  border-radius: 40rpx;
  font-size: 32rpx;
  font-weight: 600;
  box-shadow: 0 6rpx 16rpx rgba(255, 149, 0, 0.4);
  transition: all 0.2s ease;
  text-align: center;
}

.add-cart-btn:active {
  transform: translateY(2rpx);
  box-shadow: 0 3rpx 10rpx rgba(255, 149, 0, 0.4);
}

.add-cart-btn:disabled {
  background: #cccccc;
  color: #999;
  box-shadow: none;
  transform: none;
}

.buy-now-btn {
  flex: 1;
  background: linear-gradient(135deg, #fa4126, #e6391e);
  color: white;
  border: none;
  padding: 24rpx 0;
  border-radius: 40rpx;
  font-size: 32rpx;
  font-weight: 600;
  box-shadow: 0 6rpx 16rpx rgba(250, 65, 38, 0.4);
  transition: all 0.2s ease;
  text-align: center;
}

.buy-now-btn:active {
  transform: translateY(2rpx);
  box-shadow: 0 3rpx 10rpx rgba(250, 65, 38, 0.4);
}

.buy-now-btn:disabled {
  background: #cccccc;
  color: #999;
  box-shadow: none;
  transform: none;
}

/* 规格选择弹窗 */
.spec-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  z-index: 1000;
}

.spec-modal-content {
  background: white;
  border-radius: 24rpx 24rpx 0 0;
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}

.spec-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32rpx 24rpx;
  border-bottom: 1rpx solid #f0f0f0;
}

.spec-modal-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
}

.spec-modal-close {
  width: 48rpx;
  height: 48rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.spec-options {
  padding: 24rpx;
  max-height: 400rpx;
  overflow-y: auto;
}

.spec-option {
  padding: 24rpx;
  margin-bottom: 16rpx;
  border: 1rpx solid #e8e8e8;
  border-radius: 8rpx;
  background: #f8f8f8;
}

.spec-option.selected {
  border-color: #fa4126;
  background: #fff5f5;
}

.spec-option-text {
  font-size: 28rpx;
  color: #333;
}

.spec-option.selected .spec-option-text {
  color: #fa4126;
}

.spec-option-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8rpx;
}

.price-text {
  font-size: 24rpx;
  color: #fa4126;
  font-weight: 500;
}

.stock-text {
  font-size: 20rpx;
  color: #999;
}

/* 数量选择器 */
.quantity-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24rpx;
  border-top: 1rpx solid #f0f0f0;
}

.quantity-label {
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1rpx solid #e8e8e8;
  border-radius: 4rpx;
}

.quantity-btn {
  width: 48rpx;
  height: 48rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border: none;
  color: #333;
  font-size: 24rpx;
}

.quantity-btn:disabled {
  background: #f5f5f5;
  color: #ccc;
}

.quantity-value {
  width: 60rpx;
  height: 48rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24rpx;
  color: #333;
  border-left: 1rpx solid #e8e8e8;
  border-right: 1rpx solid #e8e8e8;
}

.spec-modal-footer {
  padding: 24rpx;
  border-top: 1rpx solid #f0f0f0;
}

.spec-confirm-btn {
  width: 100%;
  background: #fa4126;
  color: white;
  border: none;
  padding: 24rpx;
  border-radius: 8rpx;
  font-size: 32rpx;
  font-weight: 500;
}