/* ============================================================
   105-style-modal.css - 弹窗 + Toast 样式
   ============================================================ */

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    max-width: 340px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    font-family: var(--font);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-box {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-box .modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.modal-box .modal-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-box .modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.modal-box .modal-actions .btn {
    margin-top: 0;
}

.share-code-box {
    background: var(--primary-soft);
    border-radius: var(--radius-xs);
    padding: 16px;
    margin: 16px 0;
    text-align: center;
    border: 2px dashed var(--primary-light);
}

.share-code-box .label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.share-code-box .code {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 6px;
    font-family: 'SF Mono', monospace;
}