/* 侵权举报样式 */
.pdm-copyright-report-link {
    display: inline-block;
    float: right;
    margin: 10px 0 0 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ff6b6b;
    clear: both;
}

.pdm-copyright-report-link:hover {
    background: linear-gradient(135deg, #ee5a24, #d63031);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
    text-decoration: none;
    color: white;
}

/* 侵权举报模态框 */
.pdm-copyright-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.pdm-copyright-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.pdm-copyright-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pdm-modal-appear 0.3s ease-out;
}

@keyframes pdm-modal-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.pdm-copyright-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.pdm-copyright-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.pdm-copyright-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pdm-copyright-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.pdm-copyright-form {
    padding: 30px;
}

.pdm-form-group {
    margin-bottom: 25px;
}

.pdm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.pdm-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pdm-form-control:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    outline: none;
}

.pdm-form-control[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.pdm-form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

.pdm-file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
    min-height: 40px;
}

.pdm-file-preview-item {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 12px;
    color: #495057;
}

.pdm-file-preview-item::before {
    content: "📎";
    margin-right: 5px;
}

.pdm-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.pdm-submit-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.pdm-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.pdm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pdm-cancel-btn {
    padding: 12px 25px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdm-cancel-btn:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.pdm-loading-spinner {
    display: inline-flex;
    align-items: center;
}

.pdm-loading-spinner::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: pdm-spin 1s linear infinite;
    margin-left: 8px;
}

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

/* 侵权举报成功提示 */
.pdm-copyright-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    z-index: 10001;
    animation: pdm-slide-in 0.3s ease-out;
    max-width: 300px;
}

@keyframes pdm-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pdm-copyright-success.fade-out {
    animation: pdm-slide-out 0.3s ease-in forwards;
}

@keyframes pdm-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 下载模块隐藏样式 */
.pdm-download-section.pdm-copyright-blocked {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    position: relative;
}

.pdm-download-section.pdm-copyright-blocked::before {
    background: linear-gradient(90deg, #ffc107, #ffb300);
}

.pdm-copyright-blocked-message {
    text-align: center;
    padding: 30px;
    color: #856404;
    font-size: 16px;
    font-weight: 500;
}

.pdm-copyright-blocked-message::before {
    content: "⚠️";
    font-size: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pdm-copyright-content {
        width: 95%;
        max-width: none;
        max-height: 90vh;
        margin: 20px;
    }
    
    .pdm-copyright-header {
        padding: 15px 20px;
    }
    
    .pdm-copyright-header h3 {
        font-size: 18px;
    }
    
    .pdm-copyright-form {
        padding: 20px;
    }
    
    .pdm-form-group {
        margin-bottom: 20px;
    }
    
    .pdm-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .pdm-submit-btn,
    .pdm-cancel-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pdm-copyright-success {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .pdm-copyright-content {
        margin: 10px;
        border-radius: 12px;
    }
    
    .pdm-copyright-header {
        padding: 12px 15px;
    }
    
    .pdm-copyright-header h3 {
        font-size: 16px;
    }
    
    .pdm-copyright-form {
        padding: 15px;
    }
    
    .pdm-form-control {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .pdm-copyright-report-link {
        margin-left: 10px;
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* 文件上传样式增强 */
.pdm-form-control[type="file"] {
    padding: 10px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    cursor: pointer;
}

.pdm-form-control[type="file"]:hover {
    border-color: #007cba;
    background: #f0f7ff;
}

.pdm-form-control[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #007cba, #00a0d2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.pdm-form-control[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, #005a87, #007cba);
}

/* 错误状态样式 */
.pdm-form-control.error {
    border-color: #dc3545;
    background-color: #f8d7da;
}

.pdm-form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.pdm-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.pdm-form-control.error + .pdm-error-message {
    display: block;
}