/**
 * @author: jcc
 * @date: 2025-07-18 16:02:08
 * @description 双人购买弹窗样式
 */
.exclusive-gift-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exclusive-gift-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px 24px 24px;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.exclusive-gift-content-inner {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 40px;
}

.exclusive-gift-close {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
    transition: color 0.2s;
}

.exclusive-gift-close:hover {
    color: #fff;
}

.exclusive-gift-title {
    position: absolute;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    background: #1890ff;
    border-radius: 8px 8px 0 0;
    padding: 18px 0;
    text-align: center;
    margin: 0;
    height: 62px;
    width: 100%;
    top: 0;
    right: 0;
}

.exclusive-gift-subtitle {
    color: #1890ff;
    font-size: 15px;
    text-align: center;
    margin: 18px 0 18px 0;
    font-weight: bold;
}

.exclusive-gift-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 10px;
}

.gift-item {
    position: relative;
    display: flex;
    align-items: center;
    background: #f7fafd;
    border-radius: 8px;
    padding: 16px 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}

.gift-item.selected {
    border: 2px solid #1890ff;
    background: #e6f7ff;
}

.gift-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 14px;
}

.gift-vip {
    background: #e6f7ff;
    color: #1890ff;
}

.gift-course {
    background: #fffbe6;
    color: #faad14;
}

.gift-data {
    background: #f9f0ff;
    color: #722ed1;
}

.gift-info {
    flex: 1;
}

.gift-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.gift-desc {
    font-size: 13px;
    color: #888;
}

.gift-tag {
    background: #fff;
    color: #faad14;
    border-radius: 6px;
    padding: 2px 12px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 12px;
    white-space: nowrap;
    border: 1px solid #ffe58f;
}

.gift-item[data-type="data"] .gift-tag {
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.exclusive-gift-btn {
    width: calc(100% - 20px);
    margin: 20px auto;
    border-radius: 8px;
    padding: 12px 0;
    background: #e4e4e4;
    color: #888;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: not-allowed;
    transition: background 0.2s;
}

.exclusive-gift-btn.active {
    background: linear-gradient(90deg, #1890ff 60%, #40a9ff 100%);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 500px) {
    .exclusive-gift-content {
        padding: 12px 4px 16px 4px;
        width: 98vw;
    }

    .exclusive-gift-title {
        font-size: 18px;
        padding: 12px 0;
    }

    .exclusive-gift-list {
        gap: 12px;
    }

    .gift-item {
        padding: 12px 8px;
        padding: 24px 8px 12px;
    }

    .gift-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 10px;
    }

    .gift-name {
        font-size: 15px;
    }

    .gift-desc {
        font-size: 12px;
    }

    .gift-tag {
        font-size: 12px;
        padding: 1px 8px;
        position: absolute;
        top: 0;
        right: 0;
    }
}

.exclusive-gift-select-list {
    user-select: none;
}

.exclusive-gift-select-item {
    flex: 1;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border-radius: 16px;
    padding: 20px 16px 16px 16px;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

.exclusive-gift-select-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #4ecdc4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exclusive-gift-select-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #e3f2fd;
}

.exclusive-gift-select-item:hover::before {
    opacity: 1;
}

.exclusive-gift-select-item.selected {
    border: 3px solid #1890ff;
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f8ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(24, 144, 255, 0.3);
    position: relative;
}

.exclusive-gift-select-item.selected::before {
    opacity: 1;
    background: linear-gradient(90deg, #1890ff, #40a9ff);
}

/* 选中状态的勾选图标 */
.exclusive-gift-select-item.selected::after {
    content: '✓ 已选择';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1890ff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    opacity: 1;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.exclusive-gift-select-item .gift-hot-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* 选中状态时隐藏热门标签 */
.exclusive-gift-select-item.selected .gift-hot-tag {
    display: none;
}

.exclusive-gift-select-item .gift-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.exclusive-gift-select-item:hover .gift-icon {
    transform: scale(1.1);
}

.exclusive-gift-select-item .gift-vip {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #fff;
}

.exclusive-gift-select-item .gift-course {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: #fff;
}

.exclusive-gift-select-item .gift-data {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: #fff;
}

.exclusive-gift-select-item .gift-info {
    text-align: center;
    width: 100%;
}

.exclusive-gift-select-item .gift-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}

.exclusive-gift-select-item .gift-subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
}

.exclusive-gift-select-item .gift-badge {
    background: #fff2e8;
    color: #333;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: normal;
    border: 1px solid #ffd591;
}

.exclusive-gift-select-item[data-type="vip"] .gift-badge {
    background: #fff2e8;
    border: 1px solid #ffd591;
}

.exclusive-gift-select-item[data-type="course"] .gift-badge {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
}

.exclusive-gift-select-item[data-type="data"] .gift-badge {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
}

.exclusive-gift-select-item .gift-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.exclusive-gift-select-item .gift-view-btn {
    background: linear-gradient(45deg, #1890ff, #40a9ff);
    color: #fff;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.exclusive-gift-select-item .gift-view-btn:hover {
    background: linear-gradient(45deg, #40a9ff, #69c0ff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.exclusive-gift-select-item .gift-value {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: bold;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 选择提示样式 */
/* .exclusive-gift-select-item::after {
    content: '点击选择';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(24, 144, 255, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
} */

.exclusive-gift-select-item:hover::after {
    opacity: 1;
}

/* 选中状态时隐藏选择提示 */
.exclusive-gift-select-item.selected::after {
    display: none;
}

/* 移动端优化 */
@media (max-width: 767px) {
    .exclusive-gift-select-item {
        padding: 16px 2px 12px 2px;
        min-height: 160px;
    }
    
    .exclusive-gift-select-item .gift-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .exclusive-gift-select-item .gift-name {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .exclusive-gift-select-item .gift-subtitle {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .exclusive-gift-select-item .gift-view-btn {
        font-size: 11px;
        padding: 5px 14px;
        margin-top: 6px;
    }
    
    .exclusive-gift-select-item .gift-value {
        font-size: 13px;
        padding: 3px 10px;
    }
    
    .exclusive-gift-select-item .gift-hot-tag {
        font-size: 9px;
        padding: 1px 6px;
    }
    
    .exclusive-gift-select-list {
        gap: 10px;
    }
}



/* 礼品详情弹窗样式 */
.gift-detail-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gift-detail-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
}

.gift-detail-header {
    text-align: center;
    margin-bottom: 20px;
}

.gift-detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0 auto 12px;
}

.gift-detail-icon.vip {
    background: #ffd700;
}

.gift-detail-icon.power {
    background: #52c41a;
}

.gift-detail-icon.course {
    background: #1890ff;
}

.gift-detail-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.gift-detail-badge {
    background: #fff2e8;
    color: #333;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: normal;
    border: 1px solid #ffd591;
    display: inline-block;
}

.gift-detail-badge.power {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
}

.gift-detail-badge.course {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
}

.gift-detail-body {
    text-align: center;
}

.gift-detail-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.gift-detail-price {
    font-size: 16px;
    color: #999;
    font-weight: bold;
}

.gift-detail-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.gift-detail-close:hover {
    color: #666;
}