/* 外链跳转确认模态框样式 */
.wp-elr-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.wp-elr-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-elr-modal-header {
    margin-bottom: 20px;
    text-align: center;
}

.wp-elr-modal-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.wp-elr-modal-body {
    margin-bottom: 25px;
    text-align: center;
}

.wp-elr-message {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.wp-elr-url {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    color: #666;
    word-break: break-all;
    border: 1px solid #e9ecef;
    margin-top: 15px;
    text-align: left;
}

.wp-elr-modal-footer {
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.wp-elr-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 100px;
}

.wp-elr-btn-confirm {
    background-color: #007cba;
    color: white;
}

.wp-elr-btn-confirm:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.wp-elr-btn-cancel {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.wp-elr-btn-cancel:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wp-elr-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wp-elr-close:hover {
    color: #333;
    background-color: #f5f5f5;
}

/* 当隐藏URL时的样式调整 */
.wp-elr-modal.no-url .wp-elr-modal-body {
    margin-bottom: 15px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 600px) {
    .wp-elr-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .wp-elr-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .wp-elr-btn {
        width: 100%;
    }
}

/* 加载动画 */
.wp-elr-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}