/* 捐献对话框样式 */
.donate-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.donate-dialog.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.donate-content {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 90%;
    width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    animation: scaleIn 0.3s ease forwards;
    position: relative;
    overflow: hidden;
}

.donate-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #24C6DC, #514A9D);
}

.donate-content h3 {
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #24C6DC, #514A9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.donate-content p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    display: inline-block;
}

.donate-content p::after {
    content: '❤️';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    animation: heartBeat 1.5s infinite;
}

.donate-qr {
    margin: 30px 0;
    position: relative;
    padding: 25px;
    background: white;
    border-radius: 20px;
    border: 2px dashed rgba(36, 198, 220, 0.3);
    text-align: center;
}

.donate-qr::before {
    content: '👉 扫码请作者喝杯咖啡 ☕';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #24C6DC, #514A9D);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(36, 198, 220, 0.2);
    letter-spacing: 0.5px;
    animation: shake 5s infinite;
}

.donate-qr::after {
    content: '您的支持是我前进的动力 💪';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #24C6DC;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.donate-qr img {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
    background: white;
    padding: 12px;
    border: 1px solid #eee;
    cursor: pointer;
}

.zoomed-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.zoomed-container.show {
    display: flex;
}

.zoomed-container img {
    width: 300px;
    height: 300px;
    background: white;
    padding: 15px;
    border: none;
}

.zoomed-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
}

.zoomed-close:hover {
    background: #f0f0f0;
    color: #333;
}

.donate-close {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 35px;
    border-radius: 25px;
    cursor: pointer;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

.donate-close:hover {
    background: #f0f8fa;
    border-color: #24C6DC;
    color: #24C6DC;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 198, 220, 0.1);
}

/* 捐献按钮样式 */
.donate-btn {
    position: fixed;
    right: 25px;
    top: 25px;
    background: linear-gradient(135deg, #24C6DC, #514A9D);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(36, 198, 220, 0.3);
    animation: attention 3s infinite;
    letter-spacing: 0.5px;
    z-index: 999;
}
.donate-btn::after {
    content: '🎁';
    font-size: 16px;
    animation: twinkle 1.5s infinite;
}

.donate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(36, 198, 220, 0.4);
    background: linear-gradient(135deg, #2CD8F0, #615BC0);
}

.donate-btn i {
    font-size: 16px;
    animation: steam 2s infinite;
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes steam {
    0%, 100% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-5px) rotate(15deg);
        opacity: 0.8;
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes attention {
    0%, 100% {
        transform: scale(1);
    }
    5%, 15% {
        transform: scale(1.1);
    }
    10%, 20% {
        transform: scale(1);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(-50%);
    }
    2%, 6% {
        transform: translateX(-52%);
    }
    4%, 8% {
        transform: translateX(-48%);
    }
    10% {
        transform: translateX(-50%);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .donate-btn {
        top: auto;
        bottom: 25px;
        right: 25px;
        font-size: 14px;
        padding: 10px 20px;
    }

    .donate-content {
        padding: 30px;
        width: 340px;
    }

    .donate-content h3 {
        font-size: 26px;
    }

    .donate-content p {
        font-size: 15px;
    }

    .donate-qr {
        padding: 20px;
    }

    .donate-qr img {
        width: 180px;
        height: 180px;
    }

    .donate-qr::before,
    .donate-qr::after {
        font-size: 14px;
        padding: 6px 15px;
    }
} 