/**
 * 个人标签引导页 - 弹窗样式
 *
 * @description 弹窗、遮罩层、弹窗内容区域
 */

/* ==================== 弹窗基础 ==================== */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.hidden { display: none; }

.modal-content {
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.modal-content.modal-large { max-width: 600px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ==================== 浅色模式适配 ==================== */
[data-theme="light"] .modal {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .modal-close {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ==================== 移动端弹窗适配 ==================== */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
        align-items: center;
    }

    .modal-content {
        max-height: 85vh;
        border-radius: var(--radius);
        margin: auto;
    }

    .modal-content.modal-large {
        max-width: calc(100% - 2rem);
        margin: auto;
        border-radius: var(--radius);
        max-height: 85vh;
    }
}

/* ==================== 赞赏弹窗样式 ==================== */
.donate-modal {
    text-align: center;
}

.donate-modal .modal-header {
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.donate-modal .donate-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.donate-modal .donate-methods {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.donate-modal .donate-method {
    text-align: center;
}

.donate-modal .donate-method-title {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.donate-modal .donate-qr {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.donate-modal .donate-icon {
    color: #ff6b6b;
}

.donate-modal .donate-content {
    padding: 1rem 0;
}

/* 浅色模式适配 */
[data-theme="light"] .donate-modal .donate-icon {
    color: #e74c3c;
}

/* ==================== 支付确认弹窗样式 ==================== */
.payment-confirm-modal {
    text-align: center;
}

.payment-confirm-content {
    padding: 1rem 0;
}

.payment-confirm-message {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.payment-confirm-amount {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-confirm-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.payment-confirm-actions {
    display: flex;
    gap: 1rem;
}

.payment-confirm-actions .btn {
    flex: 1;
}