/**
 * 文件下载弹窗样式
 * File Download Modal Styles
 */

/* 下载按钮样式 */
.download-file-btn {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-file-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
    text-decoration: none;
}

/* 弹窗显示/隐藏 */
.hide {
    display: none;
}

.show {
    display: block;
}

/* 弹窗背景 */
#operation_email_activities_bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* 弹窗容器 */
.operation_email {
    width: 70%;
    max-width: 700px;
    min-height: 350px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    overflow: hidden;
    z-index: 9999;
}

/* 关闭按钮 */
.operation_email .oper_close_style {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    line-height: 1;
    transition: all 0.3s ease;
}

.operation_email .oper_close_style:hover {
    background: #e5e5e5;
    color: #333;
}

.operation_email .oper_close_style::before {
    content: "×";
}

/* 弹窗右侧内容区域 */
.operation_email .oper_right {
    width: 100%;
    min-height: 350px;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
}

/* 文本内容区域 */
.operation_email .rig_text {
    padding: 20px 0;
}

/* 弹窗标题 */
.operation_email .oper_tit {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* 提示信息区域 */
.operation_email .oper_tips {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.operation_email .oper_tips.pt-3 {
    padding-top: 1rem;
}

/* 表单样式 */
.operation_email .oper_form {
    margin-top: 20px;
}

/* 输入框样式 */
.operation_email .oper_text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.operation_email .oper_text:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.operation_email .oper_text::placeholder {
    color: #999;
}

/* 提交按钮样式 */
.operation_email .oper_btn {
    width: 100%;
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.operation_email .oper_btn:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.operation_email .oper_btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 结果显示区域 */
#file-result {
    margin-top: 15px;
}

#file-result .alert {
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    margin-bottom: 0;
}

#file-result .alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

#file-result .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .operation_email {
        width: 90%;
        min-height: 300px;
        margin: 20px auto;
    }
    
    .operation_email .oper_right {
        padding: 15px;
    }
    
    .operation_email .rig_text {
        padding: 15px 0;
    }
    
    .operation_email .oper_tit {
        font-size: 16px;
    }
    
    .operation_email .oper_close_style {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .operation_email {
        width: 95%;
        min-height: 280px;
    }
    
    .operation_email .oper_right {
        padding: 12px;
    }
    
    .operation_email .rig_text {
        padding: 12px 0;
    }
    
    .operation_email .oper_tit {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .operation_email .oper_text {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .operation_email .oper_btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* RelevantDocuments面板样式 */
.relevant-documents-container {
    padding: 15px;
}

.documents-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-item i {
    color: #007bff;
}

.summary-label {
    font-weight: 500;
    color: #495057;
}

.summary-value {
    font-weight: 600;
    color: #007bff;
    font-size: 1.1em;
}

.document-folder {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.folder-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.folder-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.folder-title i {
    color: #ffc107;
}

.file-count {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: normal;
}

.folder-description {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 0.9em;
}

.folder-page-link {
    margin-top: 10px;
}

.folder-files {
    padding: 20px;
}

.file-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
}

.file-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.file-icon {
    flex-shrink: 0;
    font-size: 2em;
    width: 50px;
    text-align: center;
}

.file-info {
    flex-grow: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #6c757d;
}

.file-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.file-description {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 8px;
}

.file-tips {
    font-size: 0.85em;
    color: #856404;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.download-file-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.no-documents-message {
    color: #6c757d;
}

.no-documents-message i {
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        gap: 10px;
    }

    .file-icon {
        align-self: flex-start;
        width: auto;
    }

    .file-meta {
        flex-direction: column;
        gap: 5px;
    }

    .documents-summary .col-md-6 {
        margin-bottom: 15px;
    }
} 