/* ========================================
   打赏弹窗样式 — donate.js 专用
   ======================================== */

/* Overlay */
.sponsor-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

/* Modal box */
.sponsor-modal {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 20px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* Header emoji */
.sponsor-header-emoji {
    font-size: 2.5rem;
    margin-bottom: 4px;
}

/* Header title */
.sponsor-header-title {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    color: #1e293b;
}

/* Header desc */
.sponsor-header-desc {
    margin: 0 0 20px 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

/* QR code grid */
.donate-qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* QR card */
.donate-qr-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* QR label */
.donate-qr-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

/* QR image */
.donate-qr-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

/* Donate note */
.donate-note {
    background: #eff6ff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 0.76rem;
    color: #1e40af;
    line-height: 1.6;
}

/* Minor notice */
.sponsor-minor-note {
    font-size: 0.72rem;
    color: #92400e;
    background: #fffbeb;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Close button */
.sponsor-close-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.85rem;
    cursor: pointer;
}

.sponsor-close-btn:hover {
    background: #e2e8f0;
}

/* Responsive */
@media (max-width: 380px) {
    .donate-qr-grid {
        grid-template-columns: 1fr;
    }
    .donate-qr-img {
        width: 140px;
        height: 140px;
    }
}

/* ========================================
   感谢名单样式
   ======================================== */

/* Section */
.donate-thanks-section {
    margin-top: 14px;
    background: #f0fdf4;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.donate-thanks-header {
    font-size: 0.88rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 2px;
}

.donate-thanks-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Empty state */
.donate-thanks-empty {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    padding: 8px 0;
}

/* Tags */
.donate-thanks-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.donate-thanks-tag {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid #bbf7d0;
}

/* Input row */
.donate-thanks-input-row {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.donate-thanks-input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.donate-thanks-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.donate-thanks-submit-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.donate-thanks-submit-btn:hover {
    background: #1d4ed8;
}

.donate-thanks-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message */
.donate-thanks-msg {
    font-size: 0.76rem;
    margin-top: 4px;
    min-height: 18px;
}

.donate-thanks-msg-success {
    color: #16a34a;
}

.donate-thanks-msg-error {
    color: #dc2626;
}

/* Login hint */
.donate-thaks-login-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 6px;
}

.donate-thaks-login-hint a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.donate-thaks-login-hint a:hover {
    text-decoration: underline;
}

/* Modal scrollable for long thanks list */
.sponsor-modal {
    max-height: 85vh;
    overflow-y: auto;
}

/* Responsive for thanks section */
@media (max-width: 380px) {
    .donate-thanks-input-row {
        flex-direction: column;
    }
    .donate-thanks-submit-btn {
        width: 100%;
    }
}
