/* 资料页面样式 */

/* 主面板 */
.documents-panel { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border: var(--ctn-outline); 
    border-radius: 18px; 
    padding: 20px; 
    box-shadow: var(--ctn-shadow-sm);
    position: relative;
    z-index: 10;
}

/* 上传器区域 */
.uploader { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    margin-bottom: 20px; 
    padding: 15px;
    background: #f0f6ff;
    border-radius: 14px;
    border: 2px solid rgba(44,123,229,0.2);
}

/* 文件输入框 */
#doc-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

#doc-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* 上传按钮 */
#upload-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--ctn-primary), var(--ctn-primary-dark));
    color: white;
    border: 2px solid rgba(44,123,229,0.35);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

#upload-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 文档列表 */
.doc-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 15px; 
}

/* 文档卡片 */
.doc-card { 
    border: 2px solid rgba(44,123,229,0.15); 
    border-radius: 16px; 
    padding: 15px; 
    background: white;
    transition: all 0.3s ease;
    box-shadow: var(--ctn-shadow-sm);
}

.doc-card:hover {
    border-color: #3182ce;
    box-shadow: 0 4px 16px rgba(49, 130, 206, 0.1);
    transform: translateY(-2px);
}

/* 文档名称 */
.doc-card > div:first-child {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

/* 文档操作按钮组 */
.doc-actions { 
    display: flex; 
    gap: 8px; 
    margin-top: 12px; 
    flex-wrap: wrap;
}

.doc-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid rgba(44,123,229,0.2);
    background: white;
    color: #2b3f5c;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    min-width: 60px;
}

.doc-actions .btn:hover {
    border-color: rgba(44,123,229,0.35);
    background: var(--ctn-primary);
    color: white;
    transform: translateY(-1px);
}

.doc-actions button.btn {
    background: #fed7d7;
    color: #c53030;
    border-color: #feb2b2;
}

.doc-actions button.btn:hover {
    background: #c53030;
    color: white;
    border-color: #c53030;
}

/* 空状态 */
.doc-list:empty::after {
    content: "暂无上传的文档";
    display: block;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
    padding: 40px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

/* 加载状态 */
.loading-docs {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 14px;
}

.loading-docs::before {
    content: "⏳";
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .documents-panel {
        padding: 15px;
    }
    
    .uploader {
        flex-direction: column;
        align-items: stretch;
    }
    
    .doc-list {
        grid-template-columns: 1fr;
    }
    
    .doc-actions {
        justify-content: space-between;
    }
    
    .doc-actions .btn {
        flex: none;
        min-width: 80px;
    }
} 