/* 优惠券列表页面样式 */

.coupon-page { padding: 15px; max-width: 600px; margin: 0 auto; }
.coupon-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.coupon-header h2 { font-size: 18px; font-weight: bold; margin: 0; }
.redeem-btn { background: linear-gradient(120deg, var(--primary-color-2, #73ce45), var(--primary-color, #07c160)); color: #fff; border: none; border-radius: 20px; padding: 6px 16px; font-size: 14px; cursor: pointer; }
.redeem-btn:active { opacity: 0.8; }

.coupon-tabs { display: flex; border-bottom: 1px solid #eee; margin-bottom: 15px; }
.coupon-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; color: #999; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.3s; }
.coupon-tab.active { color: var(--primary-color, #07c160); border-bottom-color: var(--primary-color, #07c160); font-weight: bold; }

.coupon-list { min-height: 200px; }
.coupon-card { background: linear-gradient(135deg, #f76b1c, #e91e90); border: none; border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: visible; }
.coupon-card::before, .coupon-card::after { content: ''; position: absolute; width: 16px; height: 16px; background: var(--primary-bg-color, #fafafa); border-radius: 50%; top: 50%; transform: translateY(-50%); z-index: 1; }
.coupon-card::before { left: -8px; }
.coupon-card::after { right: -8px; }
.coupon-card.used, .coupon-card.expired { background: linear-gradient(135deg, #f0a05a, #e87aab); }
.coupon-card.used .coupon-action, .coupon-card.expired .coupon-action { }

.coupon-info { flex: 1; margin-left: 5px; }
.coupon-name { font-size: 16px; font-weight: bold; color: #fff; margin-bottom: 4px; }
.coupon-type-tag { display: none; }
.coupon-desc { font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 2px; }
.coupon-expire { font-size: 12px; color: rgba(255,255,255,0.7); }

.coupon-action .use-btn { background: #fff; color: #ff6b9d; border: none; border-radius: 20px; padding: 8px 22px; font-size: 13px; font-weight: bold; cursor: pointer; white-space: nowrap; }
.coupon-action .use-btn:active { opacity: 0.8; }
.coupon-status { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border: 3px solid rgba(255,255,255,0.6); border-radius: 50%; font-size: 15px; font-weight: bold; color: rgba(255,255,255,0.8); transform: rotate(-15deg); white-space: nowrap; }
.coupon-card.expired .coupon-status { color: #ff4d4f; border-color: #ff4d4f; }

.coupon-empty { text-align: center; padding: 60px 20px; color: #ccc; font-size: 14px; }

/* 兑换码弹窗 */
.redeem-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; }
.redeem-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); }
.redeem-box { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 16px; padding: 25px; width: 320px; max-width: 90vw; }
.redeem-title { font-size: 18px; font-weight: bold; text-align: center; margin-bottom: 20px; }
.redeem-input { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 10px; font-size: 15px; box-sizing: border-box; outline: none; }
.redeem-input:focus { border-color: var(--primary-color, #07c160); }
.redeem-submit { width: 100%; padding: 12px; background: linear-gradient(120deg, var(--primary-color-2, #73ce45), var(--primary-color, #07c160)); color: #fff; border: none; border-radius: 10px; font-size: 16px; cursor: pointer; margin-top: 15px; }
.redeem-submit:active { opacity: 0.8; }
.redeem-submit:disabled { background: #ccc; cursor: not-allowed; }
.redeem-close { position: absolute; top: 12px; right: 15px; font-size: 22px; cursor: pointer; color: #999; line-height: 1; }

/* 兑换成功状态 */
.redeem-success { text-align: center; padding: 10px 0; }
.redeem-success-icon { font-size: 50px; color: #4CAF50; margin-bottom: 10px; }
.redeem-success-title { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 8px; }
.redeem-success-detail { font-size: 15px; color: #666; margin-bottom: 6px; }
.redeem-success-type { display: inline-block; background: linear-gradient(120deg, var(--primary-color-2, #73ce45), var(--primary-color, #07c160)); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 10px; margin-bottom: 15px; }
.redeem-close-btn { width: 100%; padding: 12px; background: linear-gradient(120deg, var(--primary-color-2, #73ce45), var(--primary-color, #07c160)); color: #fff; border: none; border-radius: 10px; font-size: 16px; cursor: pointer; margin-top: 10px; }

/* 支付页优惠券选择样式 */
.coupon-section { margin: 15px; }
.coupon-section-title { font-size: 15px; font-weight: bold; color: #333; margin-bottom: 10px; padding-left: 5px; }
.coupon-section-list { display: flex; flex-direction: column; gap: 10px; }
.coupon-pay-item { display: flex; align-items: center; background: linear-gradient(135deg, #f76b1c, #e91e90); background-origin: border-box; border: 2px solid transparent; border-radius: 12px; padding: 18px 20px; cursor: pointer; transition: all 0.2s; position: relative; overflow: visible; }
.coupon-pay-item::before, .coupon-pay-item::after { content: ''; position: absolute; width: 16px; height: 16px; background: var(--primary-bg-color, #fafafa); border-radius: 50%; top: 50%; transform: translateY(-50%); z-index: 1; }
.coupon-pay-item::before { left: -8px; }
.coupon-pay-item::after { right: -8px; }
.coupon-pay-item:hover { box-shadow: 0 4px 12px rgba(233, 30, 144, 0.3); }
.coupon-pay-item.selected { border-color: #ffd700; box-shadow: 0 0 0 3px #ffd700, 0 0 18px 4px rgba(255, 215, 0, 0.55); transform: translateY(-1px); }
.coupon-pay-item.selected::before, .coupon-pay-item.selected::after { width: 24px; height: 24px; }
.coupon-pay-item.selected::before { left: -12px; }
.coupon-pay-item.selected::after { right: -12px; }
/* 已选中時加一枚金色對勾，明確「已勾選」狀態 */
.coupon-pay-item.selected .coupon-pay-price::after {
    content: '\2713';
    display: inline-block;
    margin-left: 8px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: #ffd700;
    color: #1a1410;
    font-size: 14px;
    font-weight: bold;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.coupon-pay-tag { position: absolute; top: 0; left: 0; background: linear-gradient(120deg, var(--primary-color-2, #73ce45), var(--primary-color, #07c160)); color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 12px 0 8px 0; white-space: nowrap; z-index: 2; }
.coupon-pay-info { flex: 1; margin-left: 5px; padding-top: 4px; }
.coupon-pay-name { font-size: 16px; font-weight: bold; color: #fff; margin-bottom: 4px; }
.coupon-pay-desc { font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 2px; }
.coupon-pay-expire { font-size: 12px; color: rgba(255,255,255,0.7); }
.coupon-pay-price { font-size: 24px; font-weight: bold; color: #fff; white-space: nowrap; margin-left: 15px; flex-shrink: 0; }
/* 同類項合併後右上角的張數徽標：與左上角 .coupon-pay-tag 對稱 */
.coupon-pay-count { position: absolute; top: 0; right: 0; min-width: 28px; height: 20px; padding: 0 8px; box-sizing: border-box; background: linear-gradient(120deg, #ff4757, #c0392b); color: #fff; font-size: 12px; font-weight: bold; line-height: 20px; text-align: center; border-radius: 0 12px 0 8px; z-index: 2; box-shadow: 0 2px 6px rgba(192, 57, 43, 0.35); }

/* ===== 支付页限时 75 折年卡券弹窗（非SVIP进站赠送） ===== */
.pyc-popup { display: none; position: fixed; inset: 0; z-index: 11000; align-items: center; justify-content: center; padding: 24px; }
.pyc-popup.show { display: flex; }
.pyc-popup-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
.pyc-popup-box { position: relative; z-index: 1; width: 100%; max-width: 400px; background: #fff; border-radius: 24px; padding: 28px 26px 24px; box-shadow: 0 18px 52px rgba(0,0,0,0.3); text-align: center; animation: pyc-pop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28); overflow: hidden; }
@keyframes pyc-pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pyc-popup-badge { margin: -28px -26px 18px; padding: 14px; background: linear-gradient(135deg, #f76b1c, #e91e90); color: #fff; font-size: 16px; letter-spacing: 4px; font-weight: 700; }
/* 限时券卡片：用独立突出的紫→洋红渐变 + 金色描边，与普通券(橙→粉)做区分 */
.pyc-popup-coupon { position: relative; overflow: visible; min-height: 92px; margin: 4px 2px 16px; padding: 20px 22px; border-radius: 14px; background: linear-gradient(135deg, #6a11cb, #ec008c); box-shadow: 0 8px 22px rgba(106, 17, 203, 0.35); border: 1.5px solid rgba(255, 215, 100, 0.85); text-align: left; color: #fff; }
.pyc-popup-coupon::before, .pyc-popup-coupon::after { content: ''; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; transform: translateY(-50%); }
.pyc-popup-coupon::before { left: -10px; }
.pyc-popup-coupon::after { right: -10px; }
.pyc-popup-coupon-tag { position: absolute; top: 10px; right: 12px; padding: 3px 11px; border-radius: 999px; background: linear-gradient(120deg, #ffd861, #ff9d00); color: #5a2b00; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.pyc-popup-coupon-name { font-size: 23px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; padding-right: 46px; word-break: break-word; }
.pyc-popup-coupon-desc { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.92); }
/* 倒计时：独立放在卡片下方，时间数字加大突出 */
.pyc-popup-countdown { font-size: 15px; color: #888; font-weight: 600; margin: 0 0 20px; }
.pyc-popup-countdown span { display: inline-block; min-width: 96px; margin-left: 6px; font-size: 26px; font-weight: 800; color: #e91e90; font-variant-numeric: tabular-nums; letter-spacing: 1px; vertical-align: -2px; }
.pyc-popup-actions { display: flex; gap: 10px; }
.pyc-popup-btn { flex: 1; padding: 14px 8px; border-radius: 999px; border: none; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform 0.1s ease, box-shadow 0.2s ease; }
.pyc-popup-btn:active { transform: translateY(1px); }
.pyc-popup-btn--primary { background: linear-gradient(135deg, #f76b1c, #e91e90); color: #fff; box-shadow: 0 6px 18px rgba(233, 30, 144, 0.3); }
.pyc-popup-btn--ghost { background: #fff; color: #666; border: 1px solid #ddd; }

/* 支付页可用券列表：限时赠送券(source=4)用独立突出的紫→洋红渐变 + 金色标签，与普通券区分 */
.coupon-pay-item--limited { background: linear-gradient(135deg, #6a11cb, #ec008c); box-shadow: 0 4px 14px rgba(106, 17, 203, 0.3); }
.coupon-pay-item--limited:hover { box-shadow: 0 6px 18px rgba(106, 17, 203, 0.45); }
.coupon-pay-item--limited .coupon-pay-tag { background: linear-gradient(120deg, #ffd861, #ff9d00); color: #5a2b00; font-weight: 800; }
