.coupon-container {
    max-width: 480px;
    margin: 0 auto;
    background: #f5f5f5;
    min-height: 100vh;
}

/* 顶部导航 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(12px + var(--safe-top)) 16px 12px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.back-btn:active {
    background: #f5f5f5;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: center;
}

.header-right {
    width: 40px;
}

/* 标签页 */
.coupon-tabs {
    display: flex;
    background: #fff;
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.coupon-tabs::-webkit-scrollbar {
    display: none;
}

.tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    min-width: 80px;
}

.tab-text {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff6b35;
    color: #fff;
    font-size: 11px;
    border-radius: 9px;
    margin-left: 4px;
    font-weight: 600;
}

.tab-item.active .tab-text {
    color: #ff6b35;
    font-weight: 600;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #ff6b35;
    border-radius: 2px;
}

/* 优惠券列表 */
.coupon-list {
    padding: 16px;
}

.coupon-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.coupon-item.used {
    opacity: 0.7;
}

.coupon-item.expired {
    opacity: 0.6;
}

.coupon-left {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    padding: 20px 10px;
    position: relative;
}

.coupon-item.used .coupon-left,
.coupon-item.expired .coupon-left {
    background: linear-gradient(135deg, #999 0%, #bbb 100%);
}

.coupon-amount {
    display: flex;
    align-items: baseline;
    color: #fff;
}

.amount-symbol {
    font-size: 16px;
    font-weight: 600;
    margin-right: 2px;
}

.amount-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.coupon-condition {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 6px;
    text-align: center;
}

/* 分割线 */
.coupon-divider {
    width: 1px;
    background: #f0f0f0;
    position: relative;
}

.coupon-divider::before,
.coupon-divider::after {
    content: '';
    position: absolute;
    left: -6px;
    width: 12px;
    height: 12px;
    background: #f5f5f5;
    border-radius: 50%;
}

.coupon-divider::before {
    top: -6px;
}

.coupon-divider::after {
    bottom: -6px;
}

/* 右侧内容 */
.coupon-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.coupon-info {
    flex: 1;
}

.coupon-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.coupon-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.coupon-time {
    font-size: 12px;
    color: #999;
}

.coupon-btn {
    padding: 8px 16px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 10px;
}

.coupon-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.coupon-item.used .coupon-btn,
.coupon-item.expired .coupon-btn {
    background: #ccc;
    cursor: not-allowed;
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-text {
    font-size: 16px;
    color: #999;
    margin-top: 16px;
    font-weight: 500;
}

.empty-desc {
    font-size: 13px;
    color: #bbb;
    margin-top: 8px;
}

/* 响应式 */
@media (max-width: 375px) {
    .coupon-left {
        width: 90px;
        padding: 16px 8px;
    }
    
    .amount-value {
        font-size: 28px;
    }
    
    .coupon-right {
        padding: 12px;
    }
    
    .coupon-name {
        font-size: 15px;
    }
    
    .coupon-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}