/* 积分商城页面样式 */
.points-mall-page {
  background: linear-gradient(180deg, #5B9BD5 0%, #4A90C2 100%);
  min-height: 100vh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* 头部导航 */
.header {
  background: transparent;
  padding: 20rpx 0;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32rpx;
}

.back-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  border-radius: 50rpx;
  padding: 16rpx 32rpx;
  font-size: 28rpx;
  backdrop-filter: blur(10rpx);
}

.page-title {
  color: #fff;
  font-size: 36rpx;
  font-weight: bold;
}

.placeholder {
  width: 120rpx;
}

/* 积分信息卡片 */
.points-info-card {
  background: rgba(255, 255, 255, 0.95);
  margin: 24rpx 32rpx;
  border-radius: 24rpx;
  padding: 40rpx 32rpx;
  box-shadow: 0 8rpx 32rpx rgba(74, 144, 194, 0.15);
  backdrop-filter: blur(10rpx);
}

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

.points-title {
  font-size: 32rpx;
  color: #333;
  font-weight: bold;
}

.history-btn {
  background: linear-gradient(135deg, #4A90C2 0%, #357ABD 100%);
  color: #fff;
  border: none;
  border-radius: 40rpx;
  padding: 12rpx 24rpx;
  font-size: 24rpx;
}

.points-value {
  font-size: 72rpx;
  color: #4A90C2;
  font-weight: bold;
  text-align: center;
  margin: 20rpx 0;
}

.points-desc {
  text-align: center;
  color: #666;
  font-size: 24rpx;
}

/* 我的优惠券 */
.my-coupons-section {
  margin: 32rpx;
}

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

.section-title {
  color: #fff;
  font-size: 32rpx;
  font-weight: bold;
}

.view-all-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  border-radius: 40rpx;
  padding: 12rpx 24rpx;
  font-size: 24rpx;
  backdrop-filter: blur(10rpx);
}

.coupons-scroll {
  white-space: nowrap;
}

.coupons-container {
  display: inline-flex;
  padding: 0 16rpx;
}

.coupon-item {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: 16rpx;
  padding: 24rpx;
  margin-right: 24rpx;
  min-width: 200rpx;
  position: relative;
  overflow: hidden;
}

.coupon-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10rpx;
  width: 20rpx;
  height: 20rpx;
  background: #4A90C2;
  border-radius: 50%;
  transform: translateY(-50%);
}

.coupon-item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10rpx;
  width: 20rpx;
  height: 20rpx;
  background: #4A90C2;
  border-radius: 50%;
  transform: translateY(-50%);
}

.coupon-value {
  font-size: 36rpx;
  color: #fff;
  font-weight: bold;
  text-align: center;
}

.coupon-name {
  font-size: 24rpx;
  color: #fff;
  text-align: center;
  margin: 8rpx 0;
}

.coupon-expire {
  font-size: 20rpx;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.no-coupons {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16rpx;
  padding: 60rpx 40rpx;
  text-align: center;
  backdrop-filter: blur(10rpx);
}

.no-coupons-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 28rpx;
}

/* 积分商城 */
.points-mall-section {
  margin: 32rpx;
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: 24rpx;
}

.product-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24rpx;
  padding: 32rpx;
  display: flex;
  align-items: center;
  box-shadow: 0 8rpx 32rpx rgba(74, 144, 194, 0.15);
  backdrop-filter: blur(10rpx);
}

.product-icon {
  font-size: 64rpx;
  margin-right: 24rpx;
}

.product-info {
  flex: 1;
}

.product-name {
  font-size: 32rpx;
  color: #333;
  font-weight: bold;
  margin-bottom: 8rpx;
}

.product-desc {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 12rpx;
}

.product-points {
  display: flex;
  align-items: baseline;
}

.points-number {
  font-size: 36rpx;
  color: #4A90C2;
  font-weight: bold;
}

.points-unit {
  font-size: 24rpx;
  color: #4A90C2;
  margin-left: 4rpx;
}

.exchange-btn {
  padding: 16rpx 32rpx;
  border-radius: 40rpx;
  font-size: 28rpx;
  font-weight: bold;
  text-align: center;
  min-width: 160rpx;
}

.can-exchange {
  background: linear-gradient(135deg, #4A90C2 0%, #357ABD 100%);
  color: #fff;
}

.cannot-exchange {
  background: #f5f5f5;
  color: #999;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 24rpx;
  width: 640rpx;
  max-height: 80vh;
  overflow: hidden;
}

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

.modal-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 48rpx;
  color: #999;
  padding: 0;
  width: 48rpx;
  height: 48rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 32rpx;
}

.exchange-product {
  display: flex;
  align-items: center;
  margin-bottom: 32rpx;
}

.product-icon-large {
  font-size: 80rpx;
  margin-right: 24rpx;
}

.product-details {
  flex: 1;
}

.product-details .product-name {
  font-size: 32rpx;
  color: #333;
  font-weight: bold;
  margin-bottom: 8rpx;
}

.product-value {
  font-size: 28rpx;
  color: #4A90C2;
  margin-bottom: 8rpx;
}

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

.product-validity {
  font-size: 24rpx;
  color: #999;
}

.points-status {
  background: #f8f9fa;
  border-radius: 16rpx;
  padding: 24rpx;
}

.current-points {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 8rpx;
}

.after-exchange {
  font-size: 28rpx;
  color: #4A90C2;
  font-weight: bold;
}

.modal-footer {
  display: flex;
  gap: 24rpx;
  padding: 32rpx;
  border-top: 1rpx solid #f0f0f0;
}

.cancel-btn,
.confirm-btn {
  flex: 1;
  padding: 24rpx;
  border-radius: 40rpx;
  font-size: 32rpx;
  font-weight: bold;
  text-align: center;
  border: none;
}

.cancel-btn {
  background: #f5f5f5;
  color: #666;
}

.confirm-btn {
  background: linear-gradient(135deg, #4A90C2 0%, #357ABD 100%);
  color: #fff;
}

.confirm-btn[disabled] {
  background: #f5f5f5;
  color: #999;
}

