/* 🚀 病毒式分享系统样式 */

/* 分享动机横幅 */
.viral-motivation-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.motivation-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.motivation-icon {
    font-size: 32px;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.motivation-text {
    flex: 1;
}

.motivation-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.motivation-subtitle {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.motivation-rewards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 增强的分享按钮 */
.wish-btn--viral-share {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(238, 90, 36, 0.4);
    transition: all 0.3s ease;
}

.wish-btn--viral-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(238, 90, 36, 0.5);
}

.btn-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: white;
}

.btn-icon {
    font-size: 24px;
    margin-right: 12px;
}

.btn-text {
    flex: 1;
    text-align: left;
}

.btn-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.btn-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.btn-reward {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

/* 社交证明条 */
.social-proof-bar {
    margin: 15px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.proof-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-activity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-avatars {
    display: flex;
    gap: -8px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid white;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.activity-text {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.urgency-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* 病毒式分享模态框 */
.viral-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.viral-share-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 2px solid #f8f9fa;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

/* 奖励预览 */
.share-rewards-preview {
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.reward-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.reward-icon {
    font-size: 48px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.reward-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.reward-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-item {
    font-size: 14px;
    opacity: 0.9;
}

.viral-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.benefit-icon {
    font-size: 20px;
}

.benefit-text {
    font-size: 13px;
    line-height: 1.3;
}

/* 分享模板 */
.share-templates-section {
    padding: 25px 30px;
    border-bottom: 1px solid #f8f9fa;
}

.share-templates-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

.share-templates {
    display: grid;
    gap: 15px;
}

.template-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.template-option.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff, #e8f0ff);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.template-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.template-icon {
    font-size: 24px;
    margin-top: 2px;
}

.template-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.template-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
    font-style: italic;
}

/* 社交平台 */
.social-platforms {
    padding: 25px 30px;
    border-bottom: 1px solid #f8f9fa;
}

.social-platforms h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.platform-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.platform-btn.wechat:hover { border-color: #07c160; background: #f0f9f0; }
.platform-btn.weibo:hover { border-color: #e6162d; background: #fef0f0; }
.platform-btn.qq:hover { border-color: #12b7f5; background: #f0f8ff; }
.platform-btn.douyin:hover { border-color: #fe2c55; background: #fff0f2; }
.platform-btn.xiaohongshu:hover { border-color: #ff2442; background: #fff0f2; }
.platform-btn.copy-link:hover { border-color: #6c757d; background: #f8f9fa; }

.platform-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.platform-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.platform-bonus {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    background: #d4edda;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

/* 推荐系统 */
.referral-section {
    padding: 25px 30px;
    border-bottom: 1px solid #f8f9fa;
}

.referral-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

.referral-code-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.referral-code {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    flex: 1;
    text-align: center;
}

.copy-code-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.referral-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefit {
    font-size: 14px;
    color: #495057;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.benefit:last-child {
    border-bottom: none;
}

/* 分享进度 */
.share-progress {
    padding: 25px 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

.current-level {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.progress-bar {
    background: #e9ecef;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

.next-rewards {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.reward {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

/* 动效增强 */
.energy-boost {
    animation: energyBoost 1.5s ease-out;
}

@keyframes energyBoost {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(40, 167, 69, 0.6); }
    100% { transform: scale(1); }
}

.share-boost {
    animation: shareBoost 1.5s ease-out;
}

@keyframes shareBoost {
    0% { transform: scale(1); }
    25% { transform: scale(1.02); box-shadow: 0 0 25px rgba(255, 107, 107, 0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 107, 107, 0.8); }
    75% { transform: scale(1.02); box-shadow: 0 0 25px rgba(255, 107, 107, 0.6); }
    100% { transform: scale(1); }
}

.offering-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    text-align: center;
    pointer-events: none;
    animation: offeringEffect 2s ease-out forwards;
}

@keyframes offeringEffect {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.5); 
    }
    20% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.2); 
    }
    80% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1) translateY(-20px); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8) translateY(-40px); 
    }
}

.effect-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.effect-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .viral-share-content {
        width: 95%;
        margin: 20px;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .share-rewards-preview,
    .share-templates-section,
    .social-platforms,
    .referral-section,
    .share-progress {
        padding: 20px;
    }
    
    .motivation-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .motivation-rewards {
        flex-direction: row;
        justify-content: center;
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .viral-benefits {
        grid-template-columns: 1fr;
    }
    
    .proof-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .btn-content {
        padding: 14px 16px;
    }
    
    .btn-title {
        font-size: 15px;
    }
    
    .btn-subtitle {
        font-size: 11px;
    }
}
