/* ==================== 打赏功能 ==================== */

/* 右下角浮动按钮 */
.tip-float-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #B22222, #D4372C);
    color: white;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(178,34,34,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1000;
    animation: tip-btn-pulse 2s ease-in-out infinite;
}

.tip-float-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 24px rgba(178,34,34,0.5);
    animation: none;
}

@keyframes tip-btn-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(178,34,34,0.4); }
    50% { box-shadow: 0 4px 24px rgba(178,34,34,0.6); }
}

/* 遮罩层 */
.tip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.tip-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.tip-modal {
    background: linear-gradient(135deg, #FFFCF5 0%, #FFF8EE 100%);
    border-radius: 16px;
    padding: 32px 28px 24px;
    text-align: center;
    max-width: 320px;
    width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(139,69,19,0.15);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.tip-overlay.active .tip-modal {
    transform: scale(1);
}

/* 关闭按钮 */
.tip-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #bbb;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tip-close:hover {
    background: rgba(0,0,0,0.05);
    color: #666;
}

/* 印章 */
.tip-seal {
    width: 52px;
    height: 52px;
    background: var(--朱砂印);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-family: var(--font-title);
    margin: 0 auto 16px;
    box-shadow: 0 2px 8px rgba(178,34,34,0.3);
    transform: rotate(-8deg);
}

/* 标题 */
.tip-title {
    font-family: var(--font-title);
    font-size: 28px;
    color: var(--水墨黑);
    margin-bottom: 4px;
}

.tip-subtitle {
    font-size: 13px;
    color: var(--淡墨灰);
    margin-bottom: 16px;
}

/* 诗词 */
.tip-poem {
    font-family: var(--font-title);
    font-size: 16px;
    color: #4a4a4a;
    line-height: 2;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(139,69,19,0.04);
    border-radius: 8px;
    border-left: 3px solid var(--朱砂印);
    text-align: left;
}

/* 收款码 */
.tip-qr {
    width: 200px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 底部提示 */
.tip-footer {
    font-size: 12px;
    color: #bbb;
    letter-spacing: 2px;
}

/* ========== 移动端适配 ========== */
.tip-float-btn {
    touch-action: manipulation;
}

@media (max-width: 480px) {
    .tip-float-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 22px;
        animation: none;
    }

    .tip-modal {
        padding: 24px 20px 20px;
    }

    .tip-seal {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .tip-title {
        font-size: 24px;
    }

    .tip-poem {
        font-size: 14px;
        padding: 10px 12px;
    }

    .tip-qr {
        width: 180px;
    }
}
