/* 打赏按钮样式 */
.reward-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid rgba(137, 138, 196, 0.2);
    text-align: center;
}

.reward-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius, 8px);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

.reward-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.reward-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(137, 138, 196, 0.3);
}

.reward-button:hover::before {
    left: 100%;
}

.reward-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.reward-button:hover .reward-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 打赏二维码弹窗 */
.reward-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reward-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.reward-modal-content {
    background: var(--background-color, white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.reward-modal.show .reward-modal-content {
    transform: scale(1);
}

.reward-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--text-color, #333);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.reward-close:hover {
    background: rgba(137, 138, 196, 0.1);
    transform: rotate(90deg);
}

.reward-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 1.5rem;
    text-align: center;
}

.reward-subtitle {
    color: var(--text-light, #666);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.reward-qr-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.reward-qr-item {
    text-align: center;
    min-width: 200px;
}

.reward-qr-label {
    font-weight: 600;
    color: var(--primary-color, #8b8ac4);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reward-qr-image {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 3px solid var(--border-color, #e5e7eb);
    transition: all 0.3s ease;
    box-shadow: var(--shadow, 0 1px 3px 0 rgba(0, 0, 0, 0.1));
    display: block;
    margin: 0 auto;
}

.reward-qr-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

/* 暗黑模式适配 */
:root[data-theme="dark"] .reward-section {
    border-top-color: rgba(177, 59, 255, 0.3);
}

:root[data-theme="dark"] .reward-modal-content {
    background: var(--surface-color, #1a1a1a);
    border: 1px solid var(--border-color, #333);
}

:root[data-theme="dark"] .reward-qr-image {
    border-color: var(--border-color, #444);
}

:root[data-theme="dark"] .reward-close {
    color: var(--text-color, #fff);
}

:root[data-theme="dark"] .reward-close:hover {
    background: var(--hover-color, rgba(255, 255, 255, 0.1));
}

/* 响应式设计 */
@media (max-width: 768px) {
    .reward-modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .reward-qr-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .reward-qr-item {
        min-width: auto;
    }
    
    .reward-qr-image {
        max-width: 160px;
        max-height: 160px;
    }
    
    .reward-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .reward-qr-image {
        max-width: 140px;
        max-height: 140px;
    }
    
    .reward-title {
        font-size: 1.3rem;
    }
}
