/* 我的优惠券页面样式 */
.my-coupons-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;
}

/* 选项卡 */
.tabs-container {
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  margin: 24rpx 32rpx;
  border-radius: 50rpx;
  padding: 8rpx;
  box-shadow: 0 4rpx 16rpx rgba(74, 144, 194, 0.15);
  backdrop-filter: blur(10rpx);
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 16rpx 20rpx;
  border-radius: 40rpx;
  font-size: 28rpx;
  color: #666;
  transition: all 0.3s ease;
}

.tab-item.active {
  background: linear-gradient(135deg, #4A90C2 0%, #357ABD 100%);
  color: #fff;
  font-weight: bold;
}

/* 优惠券列表 */
.coupons-list {
  padding: 0 32rpx 32rpx;
}

.coupon-card {
  background: #fff;
  border-radius: 20rpx;
  margin-bottom: 24rpx;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4rpx 16rpx rgba(74, 144, 194, 0.1);
}

.coupon-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 200rpx;
  width: 2rpx;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 8rpx,
    #ddd 8rpx,
    #ddd 16rpx
  );
  transform: translateY(-50%);
}

.coupon-left {
  width: 200rpx;
  padding: 32rpx 24rpx;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.coupon-value {
  font-size: 48rpx;
  font-weight: bold;
  margin-bottom: 8rpx;
}

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

.coupon-right {
  flex: 1;
  padding: 32rpx 24rpx;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coupon-status {
  font-size: 28rpx;
  font-weight: bold;
  margin-bottom: 12rpx;
}

.coupon-expire {
  font-size: 24rpx;
  color: #999;
}

/* 可用优惠券 */
.coupon-card.available .coupon-left {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.coupon-card.available .coupon-value {
  color: #fff;
}

.coupon-card.available .coupon-name {
  color: rgba(255, 255, 255, 0.8);
}

.coupon-card.available .coupon-status {
  color: #52C41A;
}

/* 已使用优惠券 */
.coupon-card.used .coupon-left {
  background: #f5f5f5;
}

.coupon-card.used .coupon-value {
  color: #999;
}

.coupon-card.used .coupon-status {
  color: #999;
}

.used-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.used-text {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8rpx 32rpx;
  border-radius: 40rpx;
  font-size: 32rpx;
  font-weight: bold;
  transform: rotate(-15deg);
}

/* 已过期优惠券 */
.coupon-card.expired .coupon-left {
  background: #f5f5f5;
}

.coupon-card.expired .coupon-value {
  color: #ccc;
}

.coupon-card.expired .coupon-status {
  color: #ff4d4f;
}

.expired-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 77, 79, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.expired-text {
  background: rgba(255, 77, 79, 0.8);
  color: #fff;
  padding: 8rpx 32rpx;
  border-radius: 40rpx;
  font-size: 32rpx;
  font-weight: bold;
  transform: rotate(-15deg);
}

/* 优惠券圆形缺口 */
.coupon-corner {
  position: absolute;
  top: 50%;
  left: 200rpx;
  width: 24rpx;
  height: 24rpx;
  border-radius: 50%;
  background: #4A90C2;
  transform: translate(-50%, -50%);
}

.coupon-corner::before {
  content: '';
  position: absolute;
  top: -40rpx;
  left: 50%;
  width: 12rpx;
  height: 12rpx;
  border-radius: 50%;
  background: #4A90C2;
  transform: translateX(-50%);
}

.coupon-corner::after {
  content: '';
  position: absolute;
  bottom: -40rpx;
  left: 50%;
  width: 12rpx;
  height: 12rpx;
  border-radius: 50%;
  background: #4A90C2;
  transform: translateX(-50%);
}

/* 空状态 */
.empty-coupons {
  text-align: center;
  padding: 120rpx 40rpx;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24rpx;
  backdrop-filter: blur(10rpx);
}

.empty-icon {
  font-size: 120rpx;
  margin-bottom: 32rpx;
}

.empty-text {
  font-size: 36rpx;
  color: #fff;
  font-weight: bold;
  margin-bottom: 16rpx;
}

.empty-desc {
  font-size: 28rpx;
  color: rgba(255, 255, 255, 0.7);
}

