/**
 * 分享对话框样式
 */

.share-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.share-dialog-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: shareDialogSlideIn 0.3s ease;
}

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

.share-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #1d78ed 0%, #0c49c2 100%);;
    color: white;
}

.share-dialog-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.share-dialog-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-dialog-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.share-dialog-close svg {
    width: 18px;
    height: 18px;
}

.share-dialog-body {
    padding: 25px;
}

.share-url-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f0f4ff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.share-url-info svg {
    width: 24px;
    height: 24px;
    color: #667eea;
    flex-shrink: 0;
}

.share-url-info p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.share-url-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-url-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: #333;
    background: #f9f9f9;
    transition: all 0.2s;
}

.share-url-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1d78ed 0%, #0c49c2 100%);;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.share-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.share-copy-btn.copied {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.share-copy-btn svg {
    width: 16px;
    height: 16px;
}

.share-tips {
    padding: 15px;
    background: #fff9e6;
    border-radius: 8px;
    border-left: 4px solid #ffa726;
}

.share-tips p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #f57c00;
    font-size: 14px;
}

.share-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.share-tips li {
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .share-dialog-content {
        width: 95%;
    }

    .share-dialog-header {
        padding: 15px 20px;
    }

    .share-dialog-body {
        padding: 20px;
    }

    .share-url-container {
        flex-direction: column;
    }

    .share-copy-btn {
        justify-content: center;
    }
}
